reqhead = req->r_request->front.iov_base;
op = (void *)(reqhead + 1);
op->length = cpu_to_le64(len);
- op->payload_len = op->length;
+ op->payload_len = op->length;
req->r_request->hdr.data_len = cpu_to_le32(len);
rc = ceph_osdc_start_request(&client->osdc, req);
static int last_cap_str;
static spinlock_t caps_list_lock;
-static struct list_head caps_list; // unused (reserved or unreserved)
-static int caps_total_count; // total caps allocated
-static int caps_use_count; // in use
-static int caps_reserve_count; // unused, reserved
-static int caps_avail_count; // unused, unreserved
+static struct list_head caps_list; /* unused (reserved or unreserved) */
+static int caps_total_count; /* total caps allocated */
+static int caps_use_count; /* in use */
+static int caps_reserve_count; /* unused, reserved */
+static int caps_avail_count; /* unused, unreserved */
static char *gcap_string(char *s, int c)
{
if (flags & CEPH_OSD_FLAG_WRITE) {
req->r_request->hdr.data_off = cpu_to_le16(off);
req->r_request->hdr.data_len = cpu_to_le32(*plen);
- op->payload_len = cpu_to_le32(*plen);
+ op->payload_len = cpu_to_le32(*plen);
}