struct page **pages,
int num_pages,
int flags,
+ unsigned int num_op,
struct ceph_osd_req_op *ops,
struct rbd_req_coll *coll,
int coll_index,
*/
static int rbd_req_sync_op(struct rbd_device *rbd_dev,
int flags,
+ unsigned int num_op,
struct ceph_osd_req_op *ops,
const char *object_name,
u64 ofs, u64 inbound_size,
object_name, ofs, inbound_size, NULL,
pages, num_pages,
flags,
- ops,
+ num_op, ops,
NULL, 0,
NULL,
linger_req, ver);
bio,
NULL, 0,
flags,
- ops,
+ 1, ops,
coll, coll_index,
rbd_req_cb, 0, NULL);
if (ret < 0)
return -ENOMEM;
ret = rbd_req_sync_op(rbd_dev, CEPH_OSD_FLAG_READ,
- ops, object_name, ofs, len, buf, NULL, ver);
+ 1, ops, object_name, ofs, len, buf, NULL, ver);
rbd_destroy_ops(ops);
return ret;
rbd_dev->header_name, 0, 0, NULL,
NULL, 0,
CEPH_OSD_FLAG_READ,
- ops,
+ 1, ops,
NULL, 0,
rbd_simple_req_cb, 0, NULL);
ret = rbd_req_sync_op(rbd_dev,
CEPH_OSD_FLAG_WRITE | CEPH_OSD_FLAG_ONDISK,
- ops,
+ 1, ops,
rbd_dev->header_name,
0, 0, NULL,
&rbd_dev->watch_request, NULL);
ret = rbd_req_sync_op(rbd_dev,
CEPH_OSD_FLAG_WRITE | CEPH_OSD_FLAG_ONDISK,
- ops,
+ 1, ops,
rbd_dev->header_name,
0, 0, NULL, NULL, NULL);
ops[0].cls.indata = outbound;
ops[0].cls.indata_len = outbound_size;
- ret = rbd_req_sync_op(rbd_dev, CEPH_OSD_FLAG_READ, ops,
+ ret = rbd_req_sync_op(rbd_dev, CEPH_OSD_FLAG_READ, 1, ops,
object_name, 0, inbound_size, inbound,
NULL, ver);