diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-06-25 11:26:55 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-08-02 15:26:11 -0400 |
commit | 6d54228fd1f293d00576ab2c3d2e4992c7cce12f (patch) | |
tree | c05fcb7bfe28add1a7272d70b73ea3317de11570 /include/linux/ceph | |
parent | 93d35c754d97a57bda2a2c6c39dce9b67a9f3c99 (diff) |
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, | |||
528 | u64 notify_id, | 528 | u64 notify_id, |
529 | u64 cookie, | 529 | u64 cookie, |
530 | void *payload, | 530 | void *payload, |
531 | size_t payload_len); | 531 | u32 payload_len); |
532 | int ceph_osdc_notify(struct ceph_osd_client *osdc, | 532 | int ceph_osdc_notify(struct ceph_osd_client *osdc, |
533 | struct ceph_object_id *oid, | 533 | struct ceph_object_id *oid, |
534 | struct ceph_object_locator *oloc, | 534 | struct ceph_object_locator *oloc, |
535 | void *payload, | 535 | void *payload, |
536 | size_t payload_len, | 536 | u32 payload_len, |
537 | u32 timeout, | 537 | u32 timeout, |
538 | struct page ***preply_pages, | 538 | struct page ***preply_pages, |
539 | size_t *preply_len); | 539 | size_t *preply_len); |