diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-01-25 18:16:21 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-02-20 12:16:13 +0100 |
commit | 2544a02090aa76ffb8069e6bf23d886e34d9c8da (patch) | |
tree | 753549a7f2179184f22fd0ade10edf45f3d6d606 /net/ceph/cls_lock_client.c | |
parent | fe5478e0f6694312ad17dea7083296c1aea0a049 (diff) | |
download | linux-2544a02090aa76ffb8069e6bf23d886e34d9c8da.tar.gz linux-2544a02090aa76ffb8069e6bf23d886e34d9c8da.tar.bz2 linux-2544a02090aa76ffb8069e6bf23d886e34d9c8da.zip |
libceph: pass reply buffer length through ceph_osdc_call()
To spare checking for "this reply fits into a page, but does it fit
into my buffer?" in some callers, osd_req_op_cls_response_data_pages()
needs to know how big it is.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'net/ceph/cls_lock_client.c')
-rw-r--r-- | net/ceph/cls_lock_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/cls_lock_client.c b/net/ceph/cls_lock_client.c index 50f040fdb2a9..f13a1ea87459 100644 --- a/net/ceph/cls_lock_client.c +++ b/net/ceph/cls_lock_client.c @@ -278,7 +278,7 @@ int ceph_cls_lock_info(struct ceph_osd_client *osdc, int get_info_op_buf_size; int name_len = strlen(lock_name); struct page *get_info_op_page, *reply_page; - size_t reply_len; + size_t reply_len = PAGE_SIZE; void *p, *end; int ret; |