• Home
  • Raw
  • Download

Lines Matching refs:exp

62 	struct svc_export *exp = *expp, *exp2 = NULL;  in nfsd_cross_mnt()  local
64 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt()
71 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt()
72 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt()
88 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
94 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt()
105 exp2 = exp; in nfsd_cross_mnt()
124 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument
127 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent()
140 exp_put(*exp); in nfsd_lookup_parent()
141 *exp = exp2; in nfsd_lookup_parent()
155 int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) in nfsd_mountpoint() argument
159 if (exp->ex_flags & NFSEXP_V4ROOT) in nfsd_mountpoint()
177 struct svc_export *exp; in nfsd_lookup_dentry() local
185 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
191 else if (dparent != exp->ex_path.dentry) in nfsd_lookup_dentry()
193 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
197 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
212 if (nfsd_mountpoint(dentry, exp)) { in nfsd_lookup_dentry()
222 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
229 *exp_ret = exp; in nfsd_lookup_dentry()
233 exp_put(exp); in nfsd_lookup_dentry()
253 struct svc_export *exp; in nfsd_lookup() local
260 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
263 err = check_nfsd_access(exp, rqstp); in nfsd_lookup()
270 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
275 exp_put(exp); in nfsd_lookup()
945 struct svc_export *exp; in nfsd_vfs_write() local
965 exp = fhp->fh_export; in nfsd_vfs_write()
966 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); in nfsd_vfs_write()
968 if (!EX_ISSYNC(exp)) in nfsd_vfs_write()
1995 static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) in exp_rdonly() argument
1997 return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; in exp_rdonly()
2004 nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, in nfsd_permission() argument
2025 __mnt_is_readonly(exp->ex_path.mnt)? " ro" : ""); in nfsd_permission()
2036 if (exp_rdonly(rqstp, exp) || in nfsd_permission()
2037 __mnt_is_readonly(exp->ex_path.mnt)) in nfsd_permission()
2050 if (exp->ex_flags & NFSEXP_NOAUTHNLM) in nfsd_permission()