Lines Matching refs:exp
86 struct svc_export *exp = *expp, *exp2 = NULL; in nfsd_cross_mnt() local
88 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt()
106 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
112 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt()
123 exp2 = exp; in nfsd_cross_mnt()
142 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument
145 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent()
158 exp_put(*exp); in nfsd_lookup_parent()
159 *exp = exp2; in nfsd_lookup_parent()
169 int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) in nfsd_mountpoint() argument
175 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_mountpoint()
185 struct svc_export *exp; in nfsd_lookup_dentry() local
193 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
199 else if (dparent != exp->ex_path.dentry) in nfsd_lookup_dentry()
201 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
205 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
223 if (nfsd_mountpoint(dentry, exp)) { in nfsd_lookup_dentry()
224 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
231 *exp_ret = exp; in nfsd_lookup_dentry()
235 exp_put(exp); in nfsd_lookup_dentry()
255 struct svc_export *exp; in nfsd_lookup() local
262 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
265 err = check_nfsd_access(exp, rqstp); in nfsd_lookup()
272 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
277 exp_put(exp); in nfsd_lookup()
953 struct svc_export *exp; in nfsd_vfs_write() local
974 exp = fhp->fh_export; in nfsd_vfs_write()
976 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); in nfsd_vfs_write()
978 if (!EX_ISSYNC(exp)) in nfsd_vfs_write()
2006 static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) in exp_rdonly() argument
2008 return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; in exp_rdonly()
2015 nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, in nfsd_permission() argument
2036 __mnt_is_readonly(exp->ex_path.mnt)? " ro" : ""); in nfsd_permission()
2047 if (exp_rdonly(rqstp, exp) || in nfsd_permission()
2048 __mnt_is_readonly(exp->ex_path.mnt)) in nfsd_permission()
2061 if (exp->ex_flags & NFSEXP_NOAUTHNLM) in nfsd_permission()