Lines Matching refs:ex

59 		struct ceph_object_extent *ex =  in lookup_last()  local
60 list_entry(pos, typeof(*ex), oe_item); in lookup_last()
62 if (ex->oe_objno == objno) in lookup_last()
63 return ex; in lookup_last()
65 if (ex->oe_objno < objno) in lookup_last()
77 struct ceph_object_extent *ex; in lookup_containing() local
79 list_for_each_entry(ex, object_extents, oe_item) { in lookup_containing()
80 if (ex->oe_objno == objno && in lookup_containing()
81 ex->oe_off <= objoff && in lookup_containing()
82 ex->oe_off + ex->oe_len >= objoff + xlen) /* paranoia */ in lookup_containing()
83 return ex; in lookup_containing()
85 if (ex->oe_objno > objno) in lookup_containing()
117 struct ceph_object_extent *last_ex, *ex; in ceph_file_to_extents() local
129 ex = alloc_fn(alloc_arg); in ceph_file_to_extents()
130 if (!ex) in ceph_file_to_extents()
133 ex->oe_objno = objno; in ceph_file_to_extents()
134 ex->oe_off = objoff; in ceph_file_to_extents()
135 ex->oe_len = xlen; in ceph_file_to_extents()
137 action_fn(ex, xlen, action_arg); in ceph_file_to_extents()
140 list_add(&ex->oe_item, add_pos); in ceph_file_to_extents()
142 list_add(&ex->oe_item, &last_ex->oe_item); in ceph_file_to_extents()
153 for (last_ex = list_first_entry(object_extents, typeof(*ex), oe_item), in ceph_file_to_extents()
154 ex = list_next_entry(last_ex, oe_item); in ceph_file_to_extents()
155 &ex->oe_item != object_extents; in ceph_file_to_extents()
156 last_ex = ex, ex = list_next_entry(ex, oe_item)) { in ceph_file_to_extents()
157 if (last_ex->oe_objno > ex->oe_objno || in ceph_file_to_extents()
158 (last_ex->oe_objno == ex->oe_objno && in ceph_file_to_extents()
159 last_ex->oe_off + last_ex->oe_len >= ex->oe_off)) { in ceph_file_to_extents()
180 struct ceph_object_extent *ex; in ceph_iterate_extents() local
187 ex = lookup_containing(object_extents, objno, objoff, xlen); in ceph_iterate_extents()
188 if (!ex) { in ceph_iterate_extents()
194 action_fn(ex, xlen, action_arg); in ceph_iterate_extents()