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