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