• Home
  • Raw
  • Download

Lines Matching refs:obj

48 void fscache_objlist_add(struct fscache_object *obj)  in fscache_objlist_add()  argument
59 if (obj < xobj) in fscache_objlist_add()
61 else if (obj > xobj) in fscache_objlist_add()
67 rb_link_node(&obj->objlist_link, parent, p); in fscache_objlist_add()
68 rb_insert_color(&obj->objlist_link, &fscache_object_list); in fscache_objlist_add()
79 void fscache_object_destroy(struct fscache_object *obj) in fscache_object_destroy() argument
84 rb_erase(&obj->objlist_link, &fscache_object_list); in fscache_object_destroy()
95 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup() local
113 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
114 if (pobj < obj) { in fscache_objlist_lookup()
115 if (!minobj || minobj > obj) in fscache_objlist_lookup()
116 minobj = obj; in fscache_objlist_lookup()
118 } else if (pobj > obj) { in fscache_objlist_lookup()
121 minobj = obj; in fscache_objlist_lookup()
124 obj = NULL; in fscache_objlist_lookup()
129 else if (minobj != obj) in fscache_objlist_lookup()
168 struct fscache_object *obj = v; in fscache_objlist_show() local
220 FILTER(obj->cookie, in fscache_objlist_show()
222 FILTER(obj->state != FSCACHE_OBJECT_ACTIVE || in fscache_objlist_show()
223 obj->n_ops != 0 || in fscache_objlist_show()
224 obj->n_obj_ops != 0 || in fscache_objlist_show()
225 obj->flags || in fscache_objlist_show()
226 !list_empty(&obj->dependents), in fscache_objlist_show()
228 FILTER(test_bit(FSCACHE_OBJECT_PENDING_WRITE, &obj->flags), in fscache_objlist_show()
230 FILTER(atomic_read(&obj->n_reads), in fscache_objlist_show()
232 FILTER(obj->events & obj->event_mask, in fscache_objlist_show()
234 FILTER(work_busy(&obj->work), WORK, NOWORK); in fscache_objlist_show()
239 obj->debug_id, in fscache_objlist_show()
240 obj->parent ? obj->parent->debug_id : -1, in fscache_objlist_show()
241 fscache_object_states_short[obj->state], in fscache_objlist_show()
242 obj->n_children, in fscache_objlist_show()
243 obj->n_ops, in fscache_objlist_show()
244 obj->n_obj_ops, in fscache_objlist_show()
245 obj->n_in_progress, in fscache_objlist_show()
246 obj->n_exclusive, in fscache_objlist_show()
247 atomic_read(&obj->n_reads), in fscache_objlist_show()
248 obj->event_mask & FSCACHE_OBJECT_EVENTS_MASK, in fscache_objlist_show()
249 obj->events, in fscache_objlist_show()
250 obj->flags, in fscache_objlist_show()
251 work_busy(&obj->work)); in fscache_objlist_show()
255 if (obj->cookie) { in fscache_objlist_show()
256 spin_lock(&obj->lock); in fscache_objlist_show()
257 if (obj->cookie) { in fscache_objlist_show()
258 switch (obj->cookie->def->type) { in fscache_objlist_show()
267 obj->cookie->def->type); in fscache_objlist_show()
273 obj->cookie->def->name, in fscache_objlist_show()
275 obj->cookie->flags, in fscache_objlist_show()
276 obj->cookie->netfs_data); in fscache_objlist_show()
278 if (obj->cookie->def->get_key && in fscache_objlist_show()
280 keylen = obj->cookie->def->get_key( in fscache_objlist_show()
281 obj->cookie->netfs_data, in fscache_objlist_show()
284 if (obj->cookie->def->get_aux && in fscache_objlist_show()
286 auxlen = obj->cookie->def->get_aux( in fscache_objlist_show()
287 obj->cookie->netfs_data, in fscache_objlist_show()
292 spin_unlock(&obj->lock); in fscache_objlist_show()