Lines Matching refs:last_ex
117 struct ceph_object_extent *last_ex, *ex; in ceph_file_to_extents() local
127 last_ex = lookup_last(object_extents, objno, &add_pos); in ceph_file_to_extents()
128 if (!last_ex || last_ex->oe_off + last_ex->oe_len != objoff) { in ceph_file_to_extents()
139 if (!last_ex) in ceph_file_to_extents()
142 list_add(&ex->oe_item, &last_ex->oe_item); in ceph_file_to_extents()
144 last_ex->oe_len += xlen; in ceph_file_to_extents()
146 action_fn(last_ex, xlen, action_arg); 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()
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()