]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: checkpatch fixes
authorSage Weil <sage@newdream.net>
Tue, 30 Jun 2009 20:30:58 +0000 (13:30 -0700)
committerSage Weil <sage@newdream.net>
Tue, 30 Jun 2009 21:20:45 +0000 (14:20 -0700)
src/kernel/addr.c
src/kernel/caps.c
src/kernel/osd_client.c

index fb066e291eaf346e3f16d7a5a5e59057cefb97fd..303425faf73acf14983e1c1a97666d4a13355730 100644 (file)
@@ -789,7 +789,7 @@ get_more_pages:
                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);
index 6a25cd298c33b6d9092e9ec7f5646908543cfab6..c4f0a3ed85d1e7da3066d9d082243e03669ff75c 100644 (file)
@@ -22,11 +22,11 @@ static DEFINE_SPINLOCK(cap_str_lock);
 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)
 {
index ccb770de923f91d1351bace8d66ffb6cdb6a75cb..1cc0640f2212fd5b6faf70c3d473b415bae82518 100644 (file)
@@ -148,7 +148,7 @@ struct ceph_osd_request *ceph_osdc_new_request(struct ceph_osd_client *osdc,
        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);
        }