Lines Matching defs:child
147 static struct dentry *kernfs_get_parent_dentry(struct dentry *child)
149 struct kernfs_node *kn = kernfs_dentry_node(child);
151 return d_obtain_alias(kernfs_get_inode(child->d_sb, kn->parent));
176 * find the next ancestor in the path down to @child, where @parent was the
179 * Say the path is /a/b/c/d. @child is d, @parent is %NULL. We return the root
183 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child,
186 if (child == parent) {
187 pr_crit_once("BUG in find_next_ancestor: called with parent == child");
191 while (child->parent != parent) {
192 if (!child->parent)
194 child = child->parent;
197 return child;