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