Lines Matching refs:resp

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