Lines Matching full: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()
72 /* resp->acl_{access,default} are released in nfs3svc_release_getacl. */ 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()
180 if (!svcxdr_encode_nfsstat3(xdr, resp->status)) in nfs3svc_encode_getaclres()
182 switch (resp->status) { in nfs3svc_encode_getaclres()
185 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_getaclres()
187 if (xdr_stream_encode_u32(xdr, resp->mask) < 0) in nfs3svc_encode_getaclres()
193 (resp->mask & NFS_ACL) ? resp->acl_access : NULL, in nfs3svc_encode_getaclres()
194 (resp->mask & NFS_DFACL) ? resp->acl_default : NULL); in nfs3svc_encode_getaclres()
202 resp->acl_access, in nfs3svc_encode_getaclres()
203 resp->mask & NFS_ACL, 0); in nfs3svc_encode_getaclres()
206 resp->acl_default, in nfs3svc_encode_getaclres()
207 resp->mask & NFS_DFACL, in nfs3svc_encode_getaclres()
213 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_getaclres()
224 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_setaclres() local
226 return svcxdr_encode_nfsstat3(xdr, resp->status) && in nfs3svc_encode_setaclres()
227 svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh); in nfs3svc_encode_setaclres()
235 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfs3svc_release_getacl() local
237 fh_put(&resp->fh); in nfs3svc_release_getacl()
238 posix_acl_release(resp->acl_access); in nfs3svc_release_getacl()
239 posix_acl_release(resp->acl_default); in nfs3svc_release_getacl()