• Home
  • Raw
  • Download

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()
95 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt()
96 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt()
112 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
118 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt()
129 exp2 = exp; in nfsd_cross_mnt()
148 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument
151 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent()
164 exp_put(*exp); in nfsd_lookup_parent()
165 *exp = exp2; in nfsd_lookup_parent()
179 int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) in nfsd_mountpoint() argument
183 if (exp->ex_flags & NFSEXP_V4ROOT) in nfsd_mountpoint()
201 struct svc_export *exp; in nfsd_lookup_dentry() local
209 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
215 else if (dparent != exp->ex_path.dentry) in nfsd_lookup_dentry()
217 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
221 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
239 if (nfsd_mountpoint(dentry, exp)) { in nfsd_lookup_dentry()
240 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
247 *exp_ret = exp; in nfsd_lookup_dentry()
251 exp_put(exp); in nfsd_lookup_dentry()
271 struct svc_export *exp; in nfsd_lookup() local
278 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
281 err = check_nfsd_access(exp, rqstp); in nfsd_lookup()
288 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
293 exp_put(exp); in nfsd_lookup()
959 struct svc_export *exp; in nfsd_vfs_write() local
980 exp = fhp->fh_export; in nfsd_vfs_write()
982 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); in nfsd_vfs_write()
984 if (!EX_ISSYNC(exp)) in nfsd_vfs_write()
1974 static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) in exp_rdonly() argument
1976 return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; in exp_rdonly()
1983 nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, in nfsd_permission() argument
2004 __mnt_is_readonly(exp->ex_path.mnt)? " ro" : ""); in nfsd_permission()
2015 if (exp_rdonly(rqstp, exp) || in nfsd_permission()
2016 __mnt_is_readonly(exp->ex_path.mnt)) in nfsd_permission()
2029 if (exp->ex_flags & NFSEXP_NOAUTHNLM) in nfsd_permission()