Lines Matching refs:obj
48 void fscache_objlist_add(struct fscache_object *obj) in fscache_objlist_add() argument
53 ASSERT(RB_EMPTY_NODE(&obj->objlist_link)); in fscache_objlist_add()
61 if (obj < xobj) in fscache_objlist_add()
63 else if (obj > xobj) in fscache_objlist_add()
69 rb_link_node(&obj->objlist_link, parent, p); in fscache_objlist_add()
70 rb_insert_color(&obj->objlist_link, &fscache_object_list); in fscache_objlist_add()
78 void fscache_objlist_remove(struct fscache_object *obj) in fscache_objlist_remove() argument
80 if (RB_EMPTY_NODE(&obj->objlist_link)) in fscache_objlist_remove()
86 rb_erase(&obj->objlist_link, &fscache_object_list); in fscache_objlist_remove()
96 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup() local
114 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
115 if (pobj < obj) { in fscache_objlist_lookup()
116 if (!minobj || minobj > obj) in fscache_objlist_lookup()
117 minobj = obj; in fscache_objlist_lookup()
119 } else if (pobj > obj) { in fscache_objlist_lookup()
122 minobj = obj; in fscache_objlist_lookup()
125 obj = NULL; in fscache_objlist_lookup()
130 else if (minobj != obj) in fscache_objlist_lookup()
169 struct fscache_object *obj = v; in fscache_objlist_show() local
219 cookie = obj->cookie; in fscache_objlist_show()
223 FILTER(fscache_object_is_active(obj) || in fscache_objlist_show()
224 obj->n_ops != 0 || in fscache_objlist_show()
225 obj->n_obj_ops != 0 || in fscache_objlist_show()
226 obj->flags || in fscache_objlist_show()
227 !list_empty(&obj->dependents), in fscache_objlist_show()
229 FILTER(test_bit(FSCACHE_OBJECT_PENDING_WRITE, &obj->flags), in fscache_objlist_show()
231 FILTER(atomic_read(&obj->n_reads), in fscache_objlist_show()
233 FILTER(obj->events & obj->event_mask, in fscache_objlist_show()
235 FILTER(work_busy(&obj->work), WORK, NOWORK); in fscache_objlist_show()
240 obj->debug_id, in fscache_objlist_show()
241 obj->parent ? obj->parent->debug_id : -1, in fscache_objlist_show()
242 obj->state->short_name, in fscache_objlist_show()
243 obj->n_children, in fscache_objlist_show()
244 obj->n_ops, in fscache_objlist_show()
245 obj->n_obj_ops, in fscache_objlist_show()
246 obj->n_in_progress, in fscache_objlist_show()
247 obj->n_exclusive, in fscache_objlist_show()
248 atomic_read(&obj->n_reads), in fscache_objlist_show()
249 obj->event_mask, in fscache_objlist_show()
250 obj->events, in fscache_objlist_show()
251 obj->flags, in fscache_objlist_show()
252 work_busy(&obj->work)); in fscache_objlist_show()
254 if (fscache_use_cookie(obj)) { in fscache_objlist_show()
285 fscache_unuse_cookie(obj); in fscache_objlist_show()