Lines Matching refs:child
74 static struct dentry *positive_after(struct dentry *p, struct dentry *child) in positive_after() argument
76 if (child) in positive_after()
77 child = list_next_entry(child, d_child); in positive_after()
79 child = list_first_entry(&p->d_subdirs, struct dentry, d_child); in positive_after()
81 list_for_each_entry_from(child, &p->d_subdirs, d_child) { in positive_after()
82 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in positive_after()
83 if (simple_positive(child)) { in positive_after()
84 dget_dlock(child); in positive_after()
85 spin_unlock(&child->d_lock); in positive_after()
86 return child; in positive_after()
88 spin_unlock(&child->d_lock); in positive_after()