Lines Matching refs:exp
2098 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument
2103 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations()
2105 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations()
2217 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument
2219 struct path path = exp->ex_path; in get_parent_attributes()
2271 struct svc_export *exp, in nfsd4_encode_fattr() argument
2297 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr()
2307 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr()
2330 status = fh_compose(tempfh, exp, dentry, NULL); in nfsd4_encode_fattr()
2412 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd4_encode_fattr()
2452 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr()
2457 p = xdr_encode_hyper(p, (u64)exp->ex_fsid); in nfsd4_encode_fattr()
2467 p = xdr_encode_opaque_fixed(p, exp->ex_uuid, in nfsd4_encode_fattr()
2583 status = nfsd4_encode_fs_locations(xdr, rqstp, exp); in nfsd4_encode_fattr()
2597 p = xdr_encode_hyper(p, exp->ex_path.mnt->mnt_sb->s_maxbytes); in nfsd4_encode_fattr()
2727 dentry == exp->ex_path.mnt->mnt_root) { in nfsd4_encode_fattr()
2728 err = get_parent_attributes(exp, &parent_stat); in nfsd4_encode_fattr()
2737 status = nfsd4_encode_layout_type(xdr, exp->ex_layout_type); in nfsd4_encode_fattr()
2743 status = nfsd4_encode_layout_type(xdr, exp->ex_layout_type); in nfsd4_encode_fattr()
2818 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument
2827 ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, in nfsd4_encode_fattr_to_buf()
2846 struct svc_export *exp = cd->rd_fhp->fh_export; in nfsd4_encode_dirent_fattr() local
2864 exp_get(exp); in nfsd4_encode_dirent_fattr()
2872 if (nfsd_mountpoint(dentry, exp)) { in nfsd4_encode_dirent_fattr()
2875 if (!(exp->ex_flags & NFSEXP_V4ROOT) in nfsd4_encode_dirent_fattr()
2885 err = nfsd_cross_mnt(cd->rd_rqstp, &dentry, &exp); in nfsd4_encode_dirent_fattr()
2890 nfserr = check_nfsd_access(exp, cd->rd_rqstp); in nfsd4_encode_dirent_fattr()
2896 nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, in nfsd4_encode_dirent_fattr()
2900 exp_put(exp); in nfsd4_encode_dirent_fattr()
3696 __be32 nfserr, struct svc_export *exp) in nfsd4_do_encode_secinfo() argument
3707 if (exp->ex_nflavors) { in nfsd4_do_encode_secinfo()
3708 flavs = exp->ex_flavors; in nfsd4_do_encode_secinfo()
3709 nflavs = exp->ex_nflavors; in nfsd4_do_encode_secinfo()
3712 if (exp->ex_client->flavour->flavour == RPC_AUTH_UNIX) { in nfsd4_do_encode_secinfo()
3716 } else if (exp->ex_client->flavour->flavour == RPC_AUTH_GSS) { in nfsd4_do_encode_secinfo()
3719 = svcauth_gss_flavor(exp->ex_client); in nfsd4_do_encode_secinfo()
3723 = exp->ex_client->flavour->flavour; in nfsd4_do_encode_secinfo()
3765 if (exp) in nfsd4_do_encode_secinfo()
3766 exp_put(exp); in nfsd4_do_encode_secinfo()