Lines Matching full:resp
655 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_attrstat() local
657 *p++ = resp->status; in nfs3svc_encode_attrstat()
658 if (resp->status == 0) { in nfs3svc_encode_attrstat()
659 lease_get_mtime(d_inode(resp->fh.fh_dentry), in nfs3svc_encode_attrstat()
660 &resp->stat.mtime); in nfs3svc_encode_attrstat()
661 p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); in nfs3svc_encode_attrstat()
670 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_wccstat() local
672 *p++ = resp->status; in nfs3svc_encode_wccstat()
673 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_wccstat()
681 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_diropres() local
683 *p++ = resp->status; in nfs3svc_encode_diropres()
684 if (resp->status == 0) { in nfs3svc_encode_diropres()
685 p = encode_fh(p, &resp->fh); in nfs3svc_encode_diropres()
686 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_diropres()
688 p = encode_post_op_attr(rqstp, p, &resp->dirfh); in nfs3svc_encode_diropres()
696 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfs3svc_encode_accessres() local
698 *p++ = resp->status; in nfs3svc_encode_accessres()
699 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_accessres()
700 if (resp->status == 0) in nfs3svc_encode_accessres()
701 *p++ = htonl(resp->access); in nfs3svc_encode_accessres()
709 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfs3svc_encode_readlinkres() local
711 *p++ = resp->status; in nfs3svc_encode_readlinkres()
712 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readlinkres()
713 if (resp->status == 0) { in nfs3svc_encode_readlinkres()
714 *p++ = htonl(resp->len); in nfs3svc_encode_readlinkres()
716 rqstp->rq_res.page_len = resp->len; in nfs3svc_encode_readlinkres()
717 if (resp->len & 3) { in nfs3svc_encode_readlinkres()
721 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfs3svc_encode_readlinkres()
732 struct nfsd3_readres *resp = rqstp->rq_resp; in nfs3svc_encode_readres() local
734 *p++ = resp->status; in nfs3svc_encode_readres()
735 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readres()
736 if (resp->status == 0) { in nfs3svc_encode_readres()
737 *p++ = htonl(resp->count); in nfs3svc_encode_readres()
738 *p++ = htonl(resp->eof); in nfs3svc_encode_readres()
739 *p++ = htonl(resp->count); /* xdr opaque count */ in nfs3svc_encode_readres()
742 rqstp->rq_res.page_len = resp->count; in nfs3svc_encode_readres()
743 if (resp->count & 3) { in nfs3svc_encode_readres()
747 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count & 3); in nfs3svc_encode_readres()
758 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfs3svc_encode_writeres() local
760 *p++ = resp->status; in nfs3svc_encode_writeres()
761 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_writeres()
762 if (resp->status == 0) { in nfs3svc_encode_writeres()
763 *p++ = htonl(resp->count); in nfs3svc_encode_writeres()
764 *p++ = htonl(resp->committed); in nfs3svc_encode_writeres()
765 *p++ = resp->verf[0]; in nfs3svc_encode_writeres()
766 *p++ = resp->verf[1]; in nfs3svc_encode_writeres()
775 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_createres() local
777 *p++ = resp->status; in nfs3svc_encode_createres()
778 if (resp->status == 0) { in nfs3svc_encode_createres()
780 p = encode_fh(p, &resp->fh); in nfs3svc_encode_createres()
781 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_createres()
783 p = encode_wcc_data(rqstp, p, &resp->dirfh); in nfs3svc_encode_createres()
791 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfs3svc_encode_renameres() local
793 *p++ = resp->status; in nfs3svc_encode_renameres()
794 p = encode_wcc_data(rqstp, p, &resp->ffh); in nfs3svc_encode_renameres()
795 p = encode_wcc_data(rqstp, p, &resp->tfh); in nfs3svc_encode_renameres()
803 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfs3svc_encode_linkres() local
805 *p++ = resp->status; in nfs3svc_encode_linkres()
806 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_linkres()
807 p = encode_wcc_data(rqstp, p, &resp->tfh); in nfs3svc_encode_linkres()
815 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfs3svc_encode_readdirres() local
817 *p++ = resp->status; in nfs3svc_encode_readdirres()
818 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readdirres()
820 if (resp->status == 0) { in nfs3svc_encode_readdirres()
822 memcpy(p, resp->verf, 8); p += 2; in nfs3svc_encode_readdirres()
826 rqstp->rq_res.page_len = (resp->count) << 2; in nfs3svc_encode_readdirres()
831 *p++ = htonl(resp->common.err == nfserr_eof); in nfs3svc_encode_readdirres()
1071 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfs3svc_encode_fsstatres() local
1072 struct kstatfs *s = &resp->stats; in nfs3svc_encode_fsstatres()
1075 *p++ = resp->status; in nfs3svc_encode_fsstatres()
1078 if (resp->status == 0) { in nfs3svc_encode_fsstatres()
1085 *p++ = htonl(resp->invarsec); /* mean unchanged time */ in nfs3svc_encode_fsstatres()
1094 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfs3svc_encode_fsinfores() local
1096 *p++ = resp->status; in nfs3svc_encode_fsinfores()
1099 if (resp->status == 0) { in nfs3svc_encode_fsinfores()
1100 *p++ = htonl(resp->f_rtmax); in nfs3svc_encode_fsinfores()
1101 *p++ = htonl(resp->f_rtpref); in nfs3svc_encode_fsinfores()
1102 *p++ = htonl(resp->f_rtmult); in nfs3svc_encode_fsinfores()
1103 *p++ = htonl(resp->f_wtmax); in nfs3svc_encode_fsinfores()
1104 *p++ = htonl(resp->f_wtpref); in nfs3svc_encode_fsinfores()
1105 *p++ = htonl(resp->f_wtmult); in nfs3svc_encode_fsinfores()
1106 *p++ = htonl(resp->f_dtpref); in nfs3svc_encode_fsinfores()
1107 p = xdr_encode_hyper(p, resp->f_maxfilesize); in nfs3svc_encode_fsinfores()
1110 *p++ = htonl(resp->f_properties); in nfs3svc_encode_fsinfores()
1120 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfs3svc_encode_pathconfres() local
1122 *p++ = resp->status; in nfs3svc_encode_pathconfres()
1125 if (resp->status == 0) { in nfs3svc_encode_pathconfres()
1126 *p++ = htonl(resp->p_link_max); in nfs3svc_encode_pathconfres()
1127 *p++ = htonl(resp->p_name_max); in nfs3svc_encode_pathconfres()
1128 *p++ = htonl(resp->p_no_trunc); in nfs3svc_encode_pathconfres()
1129 *p++ = htonl(resp->p_chown_restricted); in nfs3svc_encode_pathconfres()
1130 *p++ = htonl(resp->p_case_insensitive); in nfs3svc_encode_pathconfres()
1131 *p++ = htonl(resp->p_case_preserving); in nfs3svc_encode_pathconfres()
1141 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfs3svc_encode_commitres() local
1143 *p++ = resp->status; in nfs3svc_encode_commitres()
1144 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_commitres()
1146 if (resp->status == 0) { in nfs3svc_encode_commitres()
1147 *p++ = resp->verf[0]; in nfs3svc_encode_commitres()
1148 *p++ = resp->verf[1]; in nfs3svc_encode_commitres()
1159 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_release_fhandle() local
1161 fh_put(&resp->fh); in nfs3svc_release_fhandle()
1167 struct nfsd3_fhandle_pair *resp = rqstp->rq_resp; in nfs3svc_release_fhandle2() local
1169 fh_put(&resp->fh1); in nfs3svc_release_fhandle2()
1170 fh_put(&resp->fh2); in nfs3svc_release_fhandle2()