|
@@ -2370,8 +2370,12 @@ static void rbd_img_obj_request_fill(struct rbd_obj_request *obj_request,
|
|
|
opcode = CEPH_OSD_OP_READ;
|
|
|
}
|
|
|
|
|
|
- osd_req_op_extent_init(osd_request, num_ops, opcode, offset, length,
|
|
|
- 0, 0);
|
|
|
+ if (opcode == CEPH_OSD_OP_DELETE)
|
|
|
+ osd_req_op_init(osd_request, num_ops, opcode);
|
|
|
+ else
|
|
|
+ osd_req_op_extent_init(osd_request, num_ops, opcode,
|
|
|
+ offset, length, 0, 0);
|
|
|
+
|
|
|
if (obj_request->type == OBJ_REQUEST_BIO)
|
|
|
osd_req_op_extent_osd_data_bio(osd_request, num_ops,
|
|
|
obj_request->bio_list, length);
|