Lines Matching refs:resp
33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() local
40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
42 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
48 resp->status = nfserr_inval; in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
54 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
64 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl()
67 resp->acl_access = acl; in nfsacld_proc_getacl()
69 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl()
74 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl()
77 resp->acl_default = acl; in nfsacld_proc_getacl()
85 posix_acl_release(resp->acl_access); in nfsacld_proc_getacl()
86 posix_acl_release(resp->acl_default); in nfsacld_proc_getacl()
96 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_setacl() local
103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
104 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
105 if (resp->status != nfs_ok) in nfsacld_proc_setacl()
129 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl()
142 resp->status = nfserrno(error); in nfsacld_proc_setacl()
152 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_getattr() local
156 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getattr()
157 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getattr()
158 if (resp->status != nfs_ok) in nfsacld_proc_getattr()
160 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr()
171 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsacld_proc_access() local
177 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_access()
178 resp->access = argp->access; in nfsacld_proc_access()
179 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsacld_proc_access()
180 if (resp->status != nfs_ok) in nfsacld_proc_access()
182 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access()
246 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsaclsvc_encode_getaclres() local
247 struct dentry *dentry = resp->fh.fh_dentry; in nfsaclsvc_encode_getaclres()
250 if (!svcxdr_encode_stat(xdr, resp->status)) in nfsaclsvc_encode_getaclres()
257 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfsaclsvc_encode_getaclres()
259 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfsaclsvc_encode_getaclres()
262 if (!nfs_stream_encode_acl(xdr, inode, resp->acl_access, in nfsaclsvc_encode_getaclres()
263 resp->mask & NFS_ACL, 0)) in nfsaclsvc_encode_getaclres()
265 if (!nfs_stream_encode_acl(xdr, inode, resp->acl_default, in nfsaclsvc_encode_getaclres()
266 resp->mask & NFS_DFACL, NFS_ACL_DEFAULT)) in nfsaclsvc_encode_getaclres()
276 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsaclsvc_encode_accessres() local
278 if (!svcxdr_encode_stat(xdr, resp->status)) in nfsaclsvc_encode_accessres()
280 switch (resp->status) { in nfsaclsvc_encode_accessres()
282 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfsaclsvc_encode_accessres()
284 if (xdr_stream_encode_u32(xdr, resp->access) < 0) in nfsaclsvc_encode_accessres()
297 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsaclsvc_release_getacl() local
299 fh_put(&resp->fh); in nfsaclsvc_release_getacl()
300 posix_acl_release(resp->acl_access); in nfsaclsvc_release_getacl()
301 posix_acl_release(resp->acl_default); in nfsaclsvc_release_getacl()
306 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsaclsvc_release_access() local
308 fh_put(&resp->fh); in nfsaclsvc_release_access()