Lines Matching defs:child
145 static struct dentry *kernfs_get_parent_dentry(struct dentry *child)
147 struct kernfs_node *kn = kernfs_dentry_node(child);
149 return d_obtain_alias(kernfs_get_inode(child->d_sb, kn->parent));
174 * find the next ancestor in the path down to @child, where @parent was the
177 * Say the path is /a/b/c/d. @child is d, @parent is %NULL. We return the root
181 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child,
184 if (child == parent) {
185 pr_crit_once("BUG in find_next_ancestor: called with parent == child");
189 while (child->parent != parent) {
190 if (!child->parent)
192 child = child->parent;
195 return child;