Lines Matching refs:parent
78 struct dentry *parent = dget_parent(dentry); in dentry_connected() local
81 if (dentry == parent) { in dentry_connected()
82 dput(parent); in dentry_connected()
85 dentry = parent; in dentry_connected()
95 struct dentry *parent = dget_parent(dentry); in clear_disconnected() local
104 dentry = parent; in clear_disconnected()
124 struct dentry *parent; in reconnect_one() local
128 parent = ERR_PTR(-EACCES); in reconnect_one()
131 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); in reconnect_one()
134 if (IS_ERR(parent)) { in reconnect_one()
136 dentry->d_inode->i_ino, PTR_ERR(parent)); in reconnect_one()
137 return parent; in reconnect_one()
141 dentry->d_inode->i_ino, parent->d_inode->i_ino); in reconnect_one()
142 err = exportfs_get_name(mnt, parent, nbuf, dentry); in reconnect_one()
148 tmp = lookup_one_unlocked(mnt_idmap(mnt), nbuf, parent, strlen(nbuf)); in reconnect_one()
169 return parent; in reconnect_one()
172 dput(parent); in reconnect_one()
175 dput(parent); in reconnect_one()
214 struct dentry *dentry, *parent; in reconnect_path() local
222 parent = reconnect_one(mnt, dentry, nbuf); in reconnect_path()
224 parent = dget_parent(dentry); in reconnect_path()
226 if (!parent) in reconnect_path()
229 if (IS_ERR(parent)) in reconnect_path()
230 return PTR_ERR(parent); in reconnect_path()
231 dentry = parent; in reconnect_path()
358 int *max_len, struct inode *parent) in export_encode_fh() argument
363 if (parent && (len < 4)) { in export_encode_fh()
374 if (parent) { in export_encode_fh()
375 fid->i32.parent_ino = parent->i_ino; in export_encode_fh()
376 fid->i32.parent_gen = parent->i_generation; in export_encode_fh()
395 int *max_len, struct inode *parent, int flags) in exportfs_encode_inode_fh() argument
407 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh()
409 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh()
427 struct inode *inode = dentry->d_inode, *parent = NULL; in exportfs_encode_fh() local
435 parent = p->d_inode; in exportfs_encode_fh()
438 error = exportfs_encode_inode_fh(inode, fid, max_len, parent, flags); in exportfs_encode_fh()