Lines Matching full:status
24 #define CB_OP_HDR_RES_MAXSZ (2 * 4) // opcode, status
144 __be32 status; in decode_compound_hdr_arg() local
146 status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ); in decode_compound_hdr_arg()
147 if (unlikely(status != 0)) in decode_compound_hdr_arg()
148 return status; in decode_compound_hdr_arg()
180 __be32 status; in decode_getattr_args() local
182 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
183 if (unlikely(status != 0)) in decode_getattr_args()
184 return status; in decode_getattr_args()
193 __be32 status; in decode_recall_args() local
195 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
196 if (unlikely(status != 0)) in decode_recall_args()
197 return status; in decode_recall_args()
216 __be32 status = 0; in decode_layoutrecall_args() local
233 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
234 if (unlikely(status != 0)) in decode_layoutrecall_args()
235 return status; in decode_layoutrecall_args()
262 __be32 status = 0; in decode_devicenotify_args() local
267 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
276 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
287 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
293 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
299 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
308 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
318 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
338 dprintk("%s: status %d ndevs %d\n", in decode_devicenotify_args()
339 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
340 return status; in decode_devicenotify_args()
361 __be32 status; in decode_rc_list() local
363 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
364 if (status) in decode_rc_list()
367 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
389 status = 0; in decode_rc_list()
392 return status; in decode_rc_list()
402 __be32 status; in decode_cb_sequence_args() local
404 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
405 if (status) in decode_cb_sequence_args()
406 return status; in decode_cb_sequence_args()
426 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
427 if (status) { in decode_cb_sequence_args()
439 return status; in decode_cb_sequence_args()
448 __be32 *p, status; in decode_recallany_args() local
454 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
455 if (unlikely(status)) in decode_recallany_args()
456 return status; in decode_recallany_args()
510 __be32 status; in decode_notify_lock_args() local
512 status = decode_fh(xdr, &args->cbnl_fh); in decode_notify_lock_args()
513 if (unlikely(status != 0)) in decode_notify_lock_args()
514 return status; in decode_notify_lock_args()
552 __be32 status; in decode_offload_args() local
555 status = decode_fh(xdr, &args->coa_fh); in decode_offload_args()
556 if (unlikely(status != 0)) in decode_offload_args()
557 return status; in decode_offload_args()
560 status = decode_stateid(xdr, &args->coa_stateid); in decode_offload_args()
561 if (unlikely(status != 0)) in decode_offload_args()
562 return status; in decode_offload_args()
564 /* decode status */ in decode_offload_args()
570 status = decode_write_response(xdr, args); in decode_offload_args()
571 if (unlikely(status != 0)) in decode_offload_args()
572 return status; in decode_offload_args()
677 __be32 status; in encode_compound_hdr_res() local
679 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
680 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
682 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
683 if (unlikely(status != 0)) in encode_compound_hdr_res()
684 return status; in encode_compound_hdr_res()
708 __be32 status = res->status; in encode_getattr_res() local
710 if (unlikely(status != 0)) in encode_getattr_res()
712 status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap)); in encode_getattr_res()
713 if (unlikely(status != 0)) in encode_getattr_res()
715 status = cpu_to_be32(NFS4ERR_RESOURCE); in encode_getattr_res()
719 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
720 if (unlikely(status != 0)) in encode_getattr_res()
722 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
723 if (unlikely(status != 0)) in encode_getattr_res()
725 status = encode_attr_atime(xdr, res->bitmap, &res->atime); in encode_getattr_res()
726 if (unlikely(status != 0)) in encode_getattr_res()
728 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
729 if (unlikely(status != 0)) in encode_getattr_res()
731 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
732 if (unlikely(status != 0)) in encode_getattr_res()
734 status = encode_attr_delegatime(xdr, res->bitmap, &res->atime); in encode_getattr_res()
735 if (unlikely(status != 0)) in encode_getattr_res()
737 status = encode_attr_delegmtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
740 return status; in encode_getattr_res()
762 __be32 status = res->csr_status; in encode_cb_sequence_res() local
764 if (unlikely(status != 0)) in encode_cb_sequence_res()
765 return status; in encode_cb_sequence_res()
767 status = encode_sessionid(xdr, &res->csr_sessionid); in encode_cb_sequence_res()
768 if (status) in encode_cb_sequence_res()
769 return status; in encode_cb_sequence_res()
844 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
845 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
846 return status; in preprocess_nfs42_op()
884 __be32 status; in process_op() local
888 status = decode_op_hdr(&rqstp->rq_arg_stream, &op_nr); in process_op()
889 if (unlikely(status)) in process_op()
890 return status; in process_op()
894 status = preprocess_nfs4_op(op_nr, &op); in process_op()
897 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
900 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
903 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
906 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
908 if (status) in process_op()
912 status = cps->drc_status; in process_op()
918 status = op->decode_args(rqstp, &rqstp->rq_arg_stream, in process_op()
920 if (likely(status == 0)) in process_op()
921 status = op->process_op(rqstp->rq_argp, rqstp->rq_resp, in process_op()
924 status = htonl(NFS4ERR_RESOURCE); in process_op()
927 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
930 if (op->encode_res != NULL && status == 0) in process_op()
931 status = op->encode_res(rqstp, xdr_out, rqstp->rq_resp); in process_op()
932 return status; in process_op()
948 __be32 status; in nfs4_callback_compound() local
950 status = decode_compound_hdr_arg(&rqstp->rq_arg_stream, &hdr_arg); in nfs4_callback_compound()
951 if (status == htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
976 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
977 status = process_op(nops, rqstp, &cps); in nfs4_callback_compound()
982 * resource error in cb_compound status without returning op */ in nfs4_callback_compound()
983 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
984 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
993 *hdr_res.status = status; in nfs4_callback_compound()