diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-05-04 17:57:30 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-05-10 11:15:05 +0300 |
commit | 0010f7052d6cb71c4b120238e28cd3fa413913d1 (patch) | |
tree | b9ff5672180e16d61f47b66ef21febb4537c773f /drivers/block | |
parent | 3a15b38fd2efc1d648cb33186bf71e9138c93491 (diff) | |
download | linux-0010f7052d6cb71c4b120238e28cd3fa413913d1.tar.xz |
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')
-rw-r--r-- | drivers/block/rbd.c | 4 |
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: |