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