Lines Matching refs:parent
78 struct dentry *parent = dget_parent(dentry);
81 if (dentry == parent) {
82 dput(parent);
85 dentry = parent;
95 struct dentry *parent = dget_parent(dentry);
104 dentry = parent;
110 * Reconnect a directory dentry with its parent.
114 * In the first case the returned dentry is the parent of the given
115 * dentry, and may itself need to be reconnected to its parent.
124 struct dentry *parent;
128 parent = ERR_PTR(-EACCES);
131 parent = mnt->mnt_sb->s_export_op->get_parent(dentry);
134 if (IS_ERR(parent)) {
136 __func__, dentry->d_inode->i_ino, PTR_ERR(parent));
137 return parent;
141 dentry->d_inode->i_ino, parent->d_inode->i_ino);
142 err = exportfs_get_name(mnt, parent, nbuf, dentry);
148 tmp = lookup_one_len_unlocked(nbuf, parent, strlen(nbuf));
169 return parent;
172 dput(parent);
175 dput(parent);
177 * Someone must have renamed our entry into another parent, in
185 * filesystem is just corrupt and gave us a parent that doesn't
214 struct dentry *dentry, *parent;
222 parent = reconnect_one(mnt, dentry, nbuf);
224 parent = dget_parent(dentry);
226 if (!parent)
229 if (IS_ERR(parent))
230 return PTR_ERR(parent);
231 dentry = parent;
274 * calls readdir on the parent until it finds an entry with
351 * @parent: parent directory inode, if wanted
359 int *max_len, struct inode *parent)
364 if (parent && (len < 4)) {
375 if (parent) {
376 fid->i32.parent_ino = parent->i_ino;
377 fid->i32.parent_gen = parent->i_generation;
386 int *max_len, struct inode *parent)
391 return nop->encode_fh(inode, fid->raw, max_len, parent);
393 return export_encode_fh(inode, fid, max_len, parent);
402 struct inode *inode = dentry->d_inode, *parent = NULL;
407 * note that while p might've ceased to be our parent already,
410 parent = p->d_inode;
413 error = exportfs_encode_inode_fh(inode, fid, max_len, parent);
482 * the parent directory in the file handle and make sure
490 * Try to extract a dentry for the parent directory from the
506 * And as usual we need to make sure the parent directory is
517 * Now that we've got both a well-connected parent and a
519 * inode is actually connected to the parent.
537 * At this point we are done with the parent, but it's pinned