Lines Matching refs:ex

287 	struct ceph_object_extent ex;  member
352 list_for_each_entry(oreq, &(ireq)->object_extents, ex.oe_item)
354 list_for_each_entry_safe(oreq, n, &(ireq)->object_extents, ex.oe_item)
1291 list_del(&obj_request->ex.oe_item); in rbd_img_obj_request_del()
1301 __func__, osd_req, obj_req, obj_req->ex.oe_objno, in rbd_osd_submit()
1302 obj_req->ex.oe_off, obj_req->ex.oe_len); in rbd_osd_submit()
1325 return !obj_req->ex.oe_off && in rbd_obj_is_entire()
1326 obj_req->ex.oe_len == rbd_dev->layout.object_size; in rbd_obj_is_entire()
1333 return obj_req->ex.oe_off + obj_req->ex.oe_len == in rbd_obj_is_tail()
1346 obj_req->ex.oe_objno); in rbd_obj_set_copyup_enabled()
1352 obj_req->ex.oe_objno); in rbd_obj_set_copyup_enabled()
1359 obj_req->ex.oe_objno); in rbd_obj_set_copyup_enabled()
1423 osd_req->r_data_offset = obj_request->ex.oe_off; in rbd_osd_format_write()
1454 obj_req->ex.oe_objno); in __rbd_obj_add_osd_request()
1477 ceph_object_extent_init(&obj_request->ex); in rbd_obj_request_create()
1978 rbd_assert(objno == obj_req->ex.oe_objno); in rbd_object_map_update_finish()
2068 if (!update_needed(rbd_dev, obj_req->ex.oe_objno, new_state)) in rbd_object_map_update()
2098 ret = rbd_cls_object_map_update(req, which, obj_req->ex.oe_objno, in rbd_object_map_update()
2121 struct ceph_file_extent *ex = &img_extents[cnt - 1]; in prune_extents() local
2124 if (ex->fe_off + ex->fe_len > overlap) in prune_extents()
2125 ex->fe_len = overlap - ex->fe_off; in prune_extents()
2144 ret = ceph_extent_to_file(&rbd_dev->layout, obj_req->ex.oe_objno, in rbd_obj_calc_img_extents()
2145 entire ? 0 : obj_req->ex.oe_off, in rbd_obj_calc_img_extents()
2147 obj_req->ex.oe_len, in rbd_obj_calc_img_extents()
2166 obj_req->ex.oe_len); in rbd_osd_setup_data()
2171 obj_req->ex.oe_len); in rbd_osd_setup_data()
2246 obj_req->ex.oe_off, obj_req->ex.oe_len, 0, 0); in __rbd_osd_setup_write_ops()
2280 obj_req->ex.oe_off, obj_req->ex.oe_len, in __rbd_osd_setup_discard_ops()
2301 off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size); in rbd_obj_init_discard()
2302 next_off = round_down(obj_req->ex.oe_off + obj_req->ex.oe_len, in rbd_obj_init_discard()
2308 obj_req, obj_req->ex.oe_off, obj_req->ex.oe_len, in rbd_obj_init_discard()
2310 obj_req->ex.oe_off = off; in rbd_obj_init_discard()
2311 obj_req->ex.oe_len = next_off - off; in rbd_obj_init_discard()
2351 obj_req->ex.oe_off, obj_req->ex.oe_len, in __rbd_osd_setup_zeroout_ops()
2481 return &obj_req->ex; in alloc_object_extent()
2603 struct ceph_file_extent ex = { off, len }; in rbd_img_fill_nodata() local
2610 return rbd_img_fill_request(img_req, &ex, 1, &fctx); in rbd_img_fill_nodata()
2613 static void set_bio_pos(struct ceph_object_extent *ex, u32 bytes, void *arg) in set_bio_pos() argument
2616 container_of(ex, struct rbd_obj_request, ex); in set_bio_pos()
2619 dout("%s objno %llu bytes %u\n", __func__, ex->oe_objno, bytes); in set_bio_pos()
2624 static void count_bio_bvecs(struct ceph_object_extent *ex, u32 bytes, void *arg) in count_bio_bvecs() argument
2627 container_of(ex, struct rbd_obj_request, ex); in count_bio_bvecs()
2630 dout("%s objno %llu bytes %u\n", __func__, ex->oe_objno, bytes); in count_bio_bvecs()
2637 static void copy_bio_bvecs(struct ceph_object_extent *ex, u32 bytes, void *arg) in copy_bio_bvecs() argument
2640 container_of(ex, struct rbd_obj_request, ex); in copy_bio_bvecs()
2643 dout("%s objno %llu bytes %u\n", __func__, ex->oe_objno, bytes); in copy_bio_bvecs()
2670 struct ceph_file_extent ex = { off, len }; in rbd_img_fill_from_bio() local
2673 return __rbd_img_fill_from_bio(img_req, &ex, 1, &it); in rbd_img_fill_from_bio()
2676 static void set_bvec_pos(struct ceph_object_extent *ex, u32 bytes, void *arg) in set_bvec_pos() argument
2679 container_of(ex, struct rbd_obj_request, ex); in set_bvec_pos()
2687 static void count_bvecs(struct ceph_object_extent *ex, u32 bytes, void *arg) in count_bvecs() argument
2690 container_of(ex, struct rbd_obj_request, ex); in count_bvecs()
2698 static void copy_bvecs(struct ceph_object_extent *ex, u32 bytes, void *arg) in copy_bvecs() argument
2701 container_of(ex, struct rbd_obj_request, ex); in copy_bvecs()
2761 if (rbd_object_map_may_exist(rbd_dev, obj_req->ex.oe_objno)) { in rbd_obj_may_exist()
2767 obj_req->ex.oe_objno); in rbd_obj_may_exist()
2781 obj_req->ex.oe_off, obj_req->ex.oe_len, 0, 0); in rbd_obj_read_object()
2897 rbd_obj_zero_range(obj_req, 0, obj_req->ex.oe_len); in rbd_obj_advance_read()
2900 if (*result < obj_req->ex.oe_len) in rbd_obj_advance_read()
2902 obj_req->ex.oe_len - *result); in rbd_obj_advance_read()
2904 rbd_assert(*result == obj_req->ex.oe_len); in rbd_obj_advance_read()
2916 if (obj_overlap < obj_req->ex.oe_len) in rbd_obj_advance_read()
2918 obj_req->ex.oe_len - obj_overlap); in rbd_obj_advance_read()
2930 if (rbd_object_map_may_exist(rbd_dev, obj_req->ex.oe_objno)) in rbd_obj_write_is_noop()
3401 obj_op_name(img_req->op_type), obj_req->ex.oe_objno, in __rbd_obj_handle_request()
3402 obj_req->ex.oe_off, obj_req->ex.oe_len, *result); in __rbd_obj_handle_request()