Lines Matching refs:resp
31 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() local
36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
38 if (resp->status != nfs_ok) in nfsd3_proc_getacl()
44 resp->status = nfserr_inval; in nfsd3_proc_getacl()
47 resp->mask = argp->mask; in nfsd3_proc_getacl()
49 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsd3_proc_getacl()
56 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl()
59 resp->acl_access = acl; in nfsd3_proc_getacl()
61 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsd3_proc_getacl()
66 resp->status = nfserrno(PTR_ERR(acl)); in nfsd3_proc_getacl()
69 resp->acl_default = acl; in nfsd3_proc_getacl()
77 posix_acl_release(resp->acl_access); in nfsd3_proc_getacl()
78 posix_acl_release(resp->acl_default); in nfsd3_proc_getacl()
88 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setacl() local
93 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
94 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
95 if (resp->status != nfs_ok) in nfsd3_proc_setacl()
117 resp->status = nfserrno(error); in nfsd3_proc_setacl()
172 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfs3svc_encode_getaclres() local
173 struct dentry *dentry = resp->fh.fh_dentry; in nfs3svc_encode_getaclres()
176 if (!svcxdr_encode_nfsstat3(xdr, resp->status)) in nfs3svc_encode_getaclres()
178 switch (resp->status) { in nfs3svc_encode_getaclres()
181 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_getaclres()
183 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfs3svc_encode_getaclres()
186 if (!nfs_stream_encode_acl(xdr, inode, resp->acl_access, in nfs3svc_encode_getaclres()
187 resp->mask & NFS_ACL, 0)) in nfs3svc_encode_getaclres()
189 if (!nfs_stream_encode_acl(xdr, inode, resp->acl_default, in nfs3svc_encode_getaclres()
190 resp->mask & NFS_DFACL, in nfs3svc_encode_getaclres()
195 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_getaclres()
206 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_setaclres() local
208 return svcxdr_encode_nfsstat3(xdr, resp->status) && in nfs3svc_encode_setaclres()
209 svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh); in nfs3svc_encode_setaclres()
217 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfs3svc_release_getacl() local
219 fh_put(&resp->fh); in nfs3svc_release_getacl()
220 posix_acl_release(resp->acl_access); in nfs3svc_release_getacl()
221 posix_acl_release(resp->acl_default); in nfs3svc_release_getacl()