Lines Matching refs:status

154 	__be32 status;  in decode_compound_hdr_arg()  local
156 status = decode_string(xdr, &hdr->taglen, &hdr->tag); in decode_compound_hdr_arg()
157 if (unlikely(status != 0)) in decode_compound_hdr_arg()
158 return status; in decode_compound_hdr_arg()
196 __be32 status; in decode_getattr_args() local
198 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
199 if (unlikely(status != 0)) in decode_getattr_args()
202 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
204 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_getattr_args()
205 return status; in decode_getattr_args()
211 __be32 status; in decode_recall_args() local
214 status = decode_stateid(xdr, &args->stateid); in decode_recall_args()
215 if (unlikely(status != 0)) in decode_recall_args()
219 status = htonl(NFS4ERR_RESOURCE); in decode_recall_args()
223 status = decode_fh(xdr, &args->fh); in decode_recall_args()
225 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_recall_args()
226 return status; in decode_recall_args()
236 __be32 status = 0; in decode_layoutrecall_args() local
242 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
256 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
257 if (unlikely(status != 0)) in decode_layoutrecall_args()
262 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
267 status = decode_stateid(xdr, &args->cbl_stateid); in decode_layoutrecall_args()
268 if (unlikely(status != 0)) in decode_layoutrecall_args()
273 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
279 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
287 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_layoutrecall_args()
288 return status; in decode_layoutrecall_args()
297 __be32 status = 0; in decode_devicenotify_args() local
305 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
312 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
318 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
328 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
334 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
340 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
349 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
359 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
375 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
376 return status; in decode_devicenotify_args()
401 __be32 status; in decode_rc_list() local
403 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
404 if (status) in decode_rc_list()
407 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
428 status = 0; in decode_rc_list()
431 return status; in decode_rc_list()
440 __be32 status; in decode_cb_sequence_args() local
442 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
443 if (status) in decode_cb_sequence_args()
446 status = htonl(NFS4ERR_RESOURCE); in decode_cb_sequence_args()
466 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
467 if (status) { in decode_cb_sequence_args()
473 status = 0; in decode_cb_sequence_args()
486 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_cb_sequence_args()
487 return status; in decode_cb_sequence_args()
501 __be32 *p, status; in decode_recallany_args() local
508 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
509 if (unlikely(status)) in decode_recallany_args()
510 return status; in decode_recallany_args()
629 __be32 status; in encode_compound_hdr_res() local
631 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
632 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
634 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
635 if (unlikely(status != 0)) in encode_compound_hdr_res()
636 return status; in encode_compound_hdr_res()
658 __be32 status = res->status; in encode_getattr_res() local
660 if (unlikely(status != 0)) in encode_getattr_res()
662 status = encode_attr_bitmap(xdr, res->bitmap, &savep); in encode_getattr_res()
663 if (unlikely(status != 0)) in encode_getattr_res()
665 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
666 if (unlikely(status != 0)) in encode_getattr_res()
668 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
669 if (unlikely(status != 0)) in encode_getattr_res()
671 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
672 if (unlikely(status != 0)) in encode_getattr_res()
674 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
677 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in encode_getattr_res()
678 return status; in encode_getattr_res()
702 __be32 status = res->csr_status; in encode_cb_sequence_res() local
704 if (unlikely(status != 0)) in encode_cb_sequence_res()
718 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in encode_cb_sequence_res()
719 return status; in encode_cb_sequence_res()
795 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
796 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
797 return status; in preprocess_nfs42_op()
833 __be32 status; in process_op() local
838 status = decode_op_hdr(xdr_in, &op_nr); in process_op()
839 if (unlikely(status)) in process_op()
840 return status; in process_op()
847 status = preprocess_nfs4_op(op_nr, &op); in process_op()
850 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
853 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
856 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
859 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
861 if (status) in process_op()
865 status = cps->drc_status; in process_op()
871 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
872 if (likely(status == 0)) in process_op()
873 status = op->process_op(argp, resp, cps); in process_op()
875 status = htonl(NFS4ERR_RESOURCE); in process_op()
878 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
881 if (op->encode_res != NULL && status == 0) in process_op()
882 status = op->encode_res(rqstp, xdr_out, resp); in process_op()
883 dprintk("%s: done, status = %d\n", __func__, ntohl(status)); in process_op()
884 return status; in process_op()
895 __be32 *p, status; in nfs4_callback_compound() local
911 status = decode_compound_hdr_arg(&xdr_in, &hdr_arg); in nfs4_callback_compound()
912 if (status == __constant_htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
927 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
928 status = process_op(nops, rqstp, &xdr_in, in nfs4_callback_compound()
935 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
936 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
940 *hdr_res.status = status; in nfs4_callback_compound()
944 dprintk("%s: done, status = %u\n", __func__, ntohl(status)); in nfs4_callback_compound()