Lines Matching refs:target_dir
195 * Make sure target_dir is fully connected to the dentry tree.
198 * target_dir, and target_dir->d_parent->...->d_parent will reach the
201 * Whenever DCACHE_DISCONNECTED is unset, target_dir is fully connected.
202 * But the converse is not true: target_dir may have DCACHE_DISCONNECTED
206 * Note that target_dir could be removed by a concurrent operation. In
207 * that case reconnect_path may still succeed with target_dir fully
212 reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
216 dentry = dget(target_dir);
234 clear_disconnected(target_dir);
474 struct dentry *target_dir, *nresult;
497 target_dir = nop->fh_to_parent(mnt->mnt_sb, fid,
499 if (!target_dir)
501 err = PTR_ERR(target_dir);
502 if (IS_ERR(target_dir))
510 err = reconnect_path(mnt, target_dir, nbuf);
512 dput(target_dir);
521 err = exportfs_get_name(mnt, target_dir, nbuf, result);
523 dput(target_dir);
527 inode_lock(target_dir->d_inode);
528 nresult = lookup_one_len(nbuf, target_dir, strlen(nbuf));
535 inode_unlock(target_dir->d_inode);
540 dput(target_dir);