aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-04 16:57:30 +0200
committerIlya Dryomov <idryomov@gmail.com>2018-05-10 10:15:05 +0200
commit0010f7052d6cb71c4b120238e28cd3fa413913d1 (patch)
treeb9ff5672180e16d61f47b66ef21febb4537c773f /drivers/block/rbd.c
parentceph: fix rsize/wsize capping in ceph_direct_read_write() (diff)
downloadlinux-dev-0010f7052d6cb71c4b120238e28cd3fa413913d1.tar.xz
linux-dev-0010f7052d6cb71c4b120238e28cd3fa413913d1.zip
libceph: add osd_req_op_extent_osd_data_bvecs()
... and store num_bvecs for client code's convenience. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 8e8b04cc569a..33b36fea1d73 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2366,7 +2366,9 @@ static int rbd_obj_issue_copyup(struct rbd_obj_request *obj_req, u32 bytes)
osd_req_op_cls_init(obj_req->osd_req, 0, CEPH_OSD_OP_CALL, "rbd",
"copyup");
osd_req_op_cls_request_data_bvecs(obj_req->osd_req, 0,
- obj_req->copyup_bvecs, bytes);
+ obj_req->copyup_bvecs,
+ obj_req->copyup_bvec_count,
+ bytes);
switch (obj_req->img_request->op_type) {
case OBJ_OP_WRITE: