• Home
  • Raw
  • Download

Lines Matching refs:obj

43 void fscache_objlist_add(struct fscache_object *obj)  in fscache_objlist_add()  argument
48 ASSERT(RB_EMPTY_NODE(&obj->objlist_link)); in fscache_objlist_add()
56 if (obj < xobj) in fscache_objlist_add()
58 else if (obj > xobj) in fscache_objlist_add()
64 rb_link_node(&obj->objlist_link, parent, p); in fscache_objlist_add()
65 rb_insert_color(&obj->objlist_link, &fscache_object_list); in fscache_objlist_add()
73 void fscache_objlist_remove(struct fscache_object *obj) in fscache_objlist_remove() argument
75 if (RB_EMPTY_NODE(&obj->objlist_link)) in fscache_objlist_remove()
81 rb_erase(&obj->objlist_link, &fscache_object_list); in fscache_objlist_remove()
91 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup() local
109 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
110 if (pobj < obj) { in fscache_objlist_lookup()
111 if (!minobj || minobj > obj) in fscache_objlist_lookup()
112 minobj = obj; in fscache_objlist_lookup()
114 } else if (pobj > obj) { in fscache_objlist_lookup()
117 minobj = obj; in fscache_objlist_lookup()
120 obj = NULL; in fscache_objlist_lookup()
125 else if (minobj != obj) in fscache_objlist_lookup()
164 struct fscache_object *obj = v; in fscache_objlist_show() local
214 cookie = obj->cookie; in fscache_objlist_show()
218 FILTER(fscache_object_is_active(obj) || in fscache_objlist_show()
219 obj->n_ops != 0 || in fscache_objlist_show()
220 obj->n_obj_ops != 0 || in fscache_objlist_show()
221 obj->flags || in fscache_objlist_show()
222 !list_empty(&obj->dependents), in fscache_objlist_show()
224 FILTER(test_bit(FSCACHE_OBJECT_PENDING_WRITE, &obj->flags), in fscache_objlist_show()
226 FILTER(atomic_read(&obj->n_reads), in fscache_objlist_show()
228 FILTER(obj->events & obj->event_mask, in fscache_objlist_show()
230 FILTER(work_busy(&obj->work), WORK, NOWORK); in fscache_objlist_show()
235 obj->debug_id, in fscache_objlist_show()
236 obj->parent ? obj->parent->debug_id : -1, in fscache_objlist_show()
237 obj->state->short_name, in fscache_objlist_show()
238 obj->n_children, in fscache_objlist_show()
239 obj->n_ops, in fscache_objlist_show()
240 obj->n_obj_ops, in fscache_objlist_show()
241 obj->n_in_progress, in fscache_objlist_show()
242 obj->n_exclusive, in fscache_objlist_show()
243 atomic_read(&obj->n_reads), in fscache_objlist_show()
244 obj->event_mask, in fscache_objlist_show()
245 obj->events, in fscache_objlist_show()
246 obj->flags, in fscache_objlist_show()
247 work_busy(&obj->work)); in fscache_objlist_show()
249 if (fscache_use_cookie(obj)) { in fscache_objlist_show()
295 fscache_unuse_cookie(obj); in fscache_objlist_show()