Lines Matching refs:kn
69 struct kernfs_node *kn = inode->i_private; in kernfs_encode_fh() local
77 *(u64 *)fh = kn->id; in kernfs_encode_fh()
86 struct kernfs_node *kn; in __kernfs_fh_to_dentry() local
111 kn = kernfs_find_and_get_node_by_id(info->root, id); in __kernfs_fh_to_dentry()
112 if (!kn) in __kernfs_fh_to_dentry()
118 parent = kernfs_get_parent(kn); in __kernfs_fh_to_dentry()
119 kernfs_put(kn); in __kernfs_fh_to_dentry()
120 kn = parent; in __kernfs_fh_to_dentry()
121 if (!kn) in __kernfs_fh_to_dentry()
125 inode = kernfs_get_inode(sb, kn); in __kernfs_fh_to_dentry()
126 kernfs_put(kn); in __kernfs_fh_to_dentry()
149 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() local
151 return d_obtain_alias(kernfs_get_inode(child->d_sb, kn->parent)); in kernfs_get_parent_dentry()
207 struct dentry *kernfs_node_dentry(struct kernfs_node *kn, in kernfs_node_dentry() argument
218 if (!kn->parent) in kernfs_node_dentry()
221 knparent = find_next_ancestor(kn, NULL); in kernfs_node_dentry()
231 if (kn == knparent) in kernfs_node_dentry()
233 kntmp = find_next_ancestor(kn, knparent); in kernfs_node_dentry()
272 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super()