diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-06-25 17:26:55 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-08-02 21:26:11 +0200 |
commit | 6d54228fd1f293d00576ab2c3d2e4992c7cce12f (patch) | |
tree | c05fcb7bfe28add1a7272d70b73ea3317de11570 /include/linux/ceph | |
parent | 93d35c754d97a57bda2a2c6c39dce9b67a9f3c99 (diff) | |
download | linux-stable-6d54228fd1f293d00576ab2c3d2e4992c7cce12f.tar.gz linux-stable-6d54228fd1f293d00576ab2c3d2e4992c7cce12f.tar.bz2 linux-stable-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.h | 4 |
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); |