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)
127 resp->status = fh_getattr(fh, &resp->stat);
140 resp->status = nfserrno(error);
150 struct nfsd_attrstat *resp = rqstp->rq_resp;
154 fh_copy(&resp->fh, &argp->fh);
155 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP);
156 if (resp->status != nfs_ok)
158 resp->status = fh_getattr(&resp->fh, &resp->stat);
169 struct nfsd3_accessres *resp = rqstp->rq_resp;
175 fh_copy(&resp->fh, &argp->fh);
176 resp->access = argp->access;
177 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL);
178 if (resp->status != nfs_ok)
180 resp->status = fh_getattr(&resp->fh, &resp->stat);
270 struct nfsd3_getaclres *resp = rqstp->rq_resp;
271 struct dentry *dentry = resp->fh.fh_dentry;
278 *p++ = resp->status;
279 if (resp->status != nfs_ok)
291 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
292 *p++ = htonl(resp->mask);
298 (resp->mask & NFS_ACL) ? resp->acl_access : NULL,
299 (resp->mask & NFS_DFACL) ? resp->acl_default : NULL);
307 resp->acl_access,
308 resp->mask & NFS_ACL, 0);
311 resp->acl_default,
312 resp->mask & NFS_DFACL,
319 struct nfsd_attrstat *resp = rqstp->rq_resp;
321 *p++ = resp->status;
322 if (resp->status != nfs_ok)
325 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
333 struct nfsd3_accessres *resp = rqstp->rq_resp;
335 *p++ = resp->status;
336 if (resp->status != nfs_ok)
339 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat);
340 *p++ = htonl(resp->access);
350 struct nfsd3_getaclres *resp = rqstp->rq_resp;
352 fh_put(&resp->fh);
353 posix_acl_release(resp->acl_access);
354 posix_acl_release(resp->acl_default);
359 struct nfsd_attrstat *resp = rqstp->rq_resp;
361 fh_put(&resp->fh);
366 struct nfsd3_accessres *resp = rqstp->rq_resp;
368 fh_put(&resp->fh);