Lines Matching refs:exp

125 	struct svc_export *exp = *expp, *exp2 = NULL;  in nfsd_cross_mnt()  local
127 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt()
132 if (exp->ex_flags & NFSEXP_CROSSMOUNT) in nfsd_cross_mnt()
138 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt()
139 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt()
155 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
161 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt()
172 exp2 = exp; in nfsd_cross_mnt()
191 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument
194 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent()
207 exp_put(*exp); in nfsd_lookup_parent()
208 *exp = exp2; in nfsd_lookup_parent()
222 int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) in nfsd_mountpoint() argument
226 if (exp->ex_flags & NFSEXP_V4ROOT) in nfsd_mountpoint()
244 struct svc_export *exp; in nfsd_lookup_dentry() local
252 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
258 else if (dparent != exp->ex_path.dentry) in nfsd_lookup_dentry()
260 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
264 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
273 if (nfsd_mountpoint(dentry, exp)) { in nfsd_lookup_dentry()
274 host_err = nfsd_cross_mnt(rqstp, &dentry, &exp); in nfsd_lookup_dentry()
282 *exp_ret = exp; in nfsd_lookup_dentry()
286 exp_put(exp); in nfsd_lookup_dentry()
314 struct svc_export *exp; in nfsd_lookup() local
321 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
324 err = check_nfsd_access(exp, rqstp); in nfsd_lookup()
331 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
336 exp_put(exp); in nfsd_lookup()
1119 struct svc_export *exp; in nfsd_vfs_write() local
1149 exp = fhp->fh_export; in nfsd_vfs_write()
1150 use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp); in nfsd_vfs_write()
1152 if (!EX_ISSYNC(exp)) in nfsd_vfs_write()
1171 nfsd_stats_io_write_add(exp, *cnt); in nfsd_vfs_write()
2150 static int exp_rdonly(struct svc_rqst *rqstp, struct svc_export *exp) in exp_rdonly() argument
2152 return nfsexp_flags(rqstp, exp) & NFSEXP_READONLY; in exp_rdonly()
2396 nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp, in nfsd_permission() argument
2417 __mnt_is_readonly(exp->ex_path.mnt)? " ro" : ""); in nfsd_permission()
2428 if (exp_rdonly(rqstp, exp) || in nfsd_permission()
2429 __mnt_is_readonly(exp->ex_path.mnt)) in nfsd_permission()
2442 if (exp->ex_flags & NFSEXP_NOAUTHNLM) in nfsd_permission()