Lines Matching full:resp
33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() local
40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
42 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
48 resp->status = nfserr_inval; in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
54 if (resp->status != nfs_ok) in nfsacld_proc_getacl()
57 if (resp->mask & (NFS_ACL|NFS_ACLCNT)) { in nfsacld_proc_getacl()
64 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl()
67 resp->acl_access = acl; in nfsacld_proc_getacl()
69 if (resp->mask & (NFS_DFACL|NFS_DFACLCNT)) { in nfsacld_proc_getacl()
74 resp->status = nfserrno(PTR_ERR(acl)); in nfsacld_proc_getacl()
77 resp->acl_default = acl; in nfsacld_proc_getacl()
80 /* resp->acl_{access,default} are released in nfssvc_release_getacl. */ in nfsacld_proc_getacl()
85 posix_acl_release(resp->acl_access); in nfsacld_proc_getacl()
86 posix_acl_release(resp->acl_default); in nfsacld_proc_getacl()
96 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_setacl() local
103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
104 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
105 if (resp->status != nfs_ok) in nfsacld_proc_setacl()
127 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_setacl()
140 resp->status = nfserrno(error); in nfsacld_proc_setacl()
150 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_getattr() local
154 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getattr()
155 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getattr()
156 if (resp->status != nfs_ok) in nfsacld_proc_getattr()
158 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_getattr()
169 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsacld_proc_access() local
175 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_access()
176 resp->access = argp->access; in nfsacld_proc_access()
177 resp->status = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsacld_proc_access()
178 if (resp->status != nfs_ok) in nfsacld_proc_access()
180 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsacld_proc_access()
270 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsaclsvc_encode_getaclres() local
271 struct dentry *dentry = resp->fh.fh_dentry; in nfsaclsvc_encode_getaclres()
278 *p++ = resp->status; in nfsaclsvc_encode_getaclres()
279 if (resp->status != nfs_ok) in nfsaclsvc_encode_getaclres()
291 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_getaclres()
292 *p++ = htonl(resp->mask); in nfsaclsvc_encode_getaclres()
298 (resp->mask & NFS_ACL) ? resp->acl_access : NULL, in nfsaclsvc_encode_getaclres()
299 (resp->mask & NFS_DFACL) ? resp->acl_default : NULL); in nfsaclsvc_encode_getaclres()
307 resp->acl_access, in nfsaclsvc_encode_getaclres()
308 resp->mask & NFS_ACL, 0); in nfsaclsvc_encode_getaclres()
311 resp->acl_default, in nfsaclsvc_encode_getaclres()
312 resp->mask & NFS_DFACL, in nfsaclsvc_encode_getaclres()
319 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsaclsvc_encode_attrstatres() local
321 *p++ = resp->status; in nfsaclsvc_encode_attrstatres()
322 if (resp->status != nfs_ok) in nfsaclsvc_encode_attrstatres()
325 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_attrstatres()
333 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsaclsvc_encode_accessres() local
335 *p++ = resp->status; in nfsaclsvc_encode_accessres()
336 if (resp->status != nfs_ok) in nfsaclsvc_encode_accessres()
339 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfsaclsvc_encode_accessres()
340 *p++ = htonl(resp->access); in nfsaclsvc_encode_accessres()
350 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsaclsvc_release_getacl() local
352 fh_put(&resp->fh); in nfsaclsvc_release_getacl()
353 posix_acl_release(resp->acl_access); in nfsaclsvc_release_getacl()
354 posix_acl_release(resp->acl_default); in nfsaclsvc_release_getacl()
359 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsaclsvc_release_attrstat() local
361 fh_put(&resp->fh); in nfsaclsvc_release_attrstat()
366 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfsaclsvc_release_access() local
368 fh_put(&resp->fh); in nfsaclsvc_release_access()