Lines Matching refs:path
127 struct path path = {.mnt = mntget(exp->ex_path.mnt),
135 err = follow_down(&path, follow_flags);
138 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry &&
141 path_put(&path);
145 exp2 = rqst_exp_get_by_name(rqstp, &path);
157 path_put(&path);
164 * This is subtle: path.dentry is *not* on path.mnt
167 * put path *before* putting exp
169 *dpp = path.dentry;
170 path.dentry = dentry;
174 path_put(&path);
180 static void follow_to_parent(struct path *path)
184 while (path->dentry == path->mnt->mnt_root && follow_up(path))
186 dp = dget_parent(path->dentry);
187 dput(path->dentry);
188 path->dentry = dp;
194 struct path path = {.mnt = mntget((*exp)->ex_path.mnt),
197 follow_to_parent(&path);
199 exp2 = rqst_exp_parent(rqstp, &path);
203 path_put(&path);
206 *dentryp = dget(path.dentry);
210 path_put(&path);
291 * nfsd_lookup - look up a single path component for nfsd
830 struct path path;
836 path.mnt = fhp->fh_export->ex_path.mnt;
837 path.dentry = fhp->fh_dentry;
838 inode = d_inode(path.dentry);
857 file = dentry_open(&path, flags, current_cred());
1545 * Read a symlink. On entry, *lenp must contain the maximum path length that
1554 struct path path;
1562 path.mnt = fhp->fh_export->ex_path.mnt;
1563 path.dentry = fhp->fh_dentry;
1565 if (unlikely(!d_is_symlink(path.dentry)))
1568 touch_atime(&path);
1570 link = vfs_get_link(path.dentry, &done);
1588 * @path: content of the new symlink (NUL-terminated)
1599 char *path, struct nfsd_attrs *attrs,
1607 if (!flen || path[0] == '\0')
1634 host_err = vfs_symlink(&nop_mnt_idmap, d_inode(dentry), dnew, path);
2140 struct path path = {
2144 if (vfs_statfs(&path, stat))