• Home
  • Raw
  • Download

Lines Matching refs:parent

68 	struct fscache_object *parent = object->parent;  in fscache_done_parent_op()  local
71 object->debug_id, parent->debug_id, parent->n_ops); in fscache_done_parent_op()
73 spin_lock_nested(&parent->lock, 1); in fscache_done_parent_op()
74 parent->n_ops--; in fscache_done_parent_op()
75 parent->n_obj_ops--; in fscache_done_parent_op()
76 if (parent->n_ops == 0) in fscache_done_parent_op()
77 fscache_raise_event(parent, FSCACHE_OBJECT_EV_CLEARED); in fscache_done_parent_op()
78 spin_unlock(&parent->lock); in fscache_done_parent_op()
361 struct fscache_object *parent; in fscache_initialise_object() local
365 ASSERT(object->cookie->parent != NULL); in fscache_initialise_object()
379 spin_lock_nested(&object->cookie->parent->lock, 1); in fscache_initialise_object()
381 parent = object->parent; in fscache_initialise_object()
382 if (!parent) { in fscache_initialise_object()
387 spin_lock_nested(&parent->lock, 1); in fscache_initialise_object()
388 _debug("parent %s", fscache_object_states[parent->state]); in fscache_initialise_object()
390 if (parent->state >= FSCACHE_OBJECT_DYING) { in fscache_initialise_object()
393 } else if (parent->state < FSCACHE_OBJECT_AVAILABLE) { in fscache_initialise_object()
404 &parent->dependents); in fscache_initialise_object()
408 if (parent->state == FSCACHE_OBJECT_INIT) in fscache_initialise_object()
409 fscache_enqueue_object(parent); in fscache_initialise_object()
413 parent->n_ops++; in fscache_initialise_object()
414 parent->n_obj_ops++; in fscache_initialise_object()
420 spin_unlock(&parent->lock); in fscache_initialise_object()
424 spin_unlock(&object->cookie->parent->lock); in fscache_initialise_object()
439 struct fscache_object *parent; in fscache_lookup_object() local
444 parent = object->parent; in fscache_lookup_object()
445 ASSERT(parent != NULL); in fscache_lookup_object()
446 ASSERTCMP(parent->n_ops, >, 0); in fscache_lookup_object()
447 ASSERTCMP(parent->n_obj_ops, >, 0); in fscache_lookup_object()
450 ASSERTCMP(parent->state, >=, FSCACHE_OBJECT_AVAILABLE); in fscache_lookup_object()
452 if (parent->state >= FSCACHE_OBJECT_DYING || in fscache_lookup_object()
461 parent->cookie->def->name, cookie->def->name, in fscache_lookup_object()
615 struct fscache_object *parent = object->parent; in fscache_drop_object() local
631 if (parent) { in fscache_drop_object()
633 parent->debug_id, parent->n_children); in fscache_drop_object()
635 spin_lock(&parent->lock); in fscache_drop_object()
636 parent->n_children--; in fscache_drop_object()
637 if (parent->n_children == 0) in fscache_drop_object()
638 fscache_raise_event(parent, FSCACHE_OBJECT_EV_CLEARED); in fscache_drop_object()
639 spin_unlock(&parent->lock); in fscache_drop_object()
640 object->parent = NULL; in fscache_drop_object()
842 spin_lock(&object->parent->lock); in fscache_dequeue_object()
844 spin_unlock(&object->parent->lock); in fscache_dequeue_object()