aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-06-25 17:26:55 +0200
committerIlya Dryomov <idryomov@gmail.com>2018-08-02 21:26:11 +0200
commit6d54228fd1f293d00576ab2c3d2e4992c7cce12f (patch)
treec05fcb7bfe28add1a7272d70b73ea3317de11570 /include/linux/ceph
parentceph: restore ctime as well in the case of restoring old mode (diff)
downloadwireguard-linux-6d54228fd1f293d00576ab2c3d2e4992c7cce12f.tar.xz
wireguard-linux-6d54228fd1f293d00576ab2c3d2e4992c7cce12f.zip
libceph: make ceph_osdc_notify{,_ack}() payload_len u32
The wire format dictates that payload_len fits into 4 bytes. Take u32 instead of size_t to reflect that. All callers pass a small integer, so no changes required. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osd_client.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h
index 0d6ee04b4c41..d6fe7e4df8cf 100644
--- a/include/linux/ceph/osd_client.h
+++ b/include/linux/ceph/osd_client.h
@@ -528,12 +528,12 @@ int ceph_osdc_notify_ack(struct ceph_osd_client *osdc,
u64 notify_id,
u64 cookie,
void *payload,
- size_t payload_len);
+ u32 payload_len);
int ceph_osdc_notify(struct ceph_osd_client *osdc,
struct ceph_object_id *oid,
struct ceph_object_locator *oloc,
void *payload,
- size_t payload_len,
+ u32 payload_len,
u32 timeout,
struct page ***preply_pages,
size_t *preply_len);