Lines Matching refs:status

156 	__be32 status;  in decode_compound_hdr_arg()  local
158 status = decode_string(xdr, &hdr->taglen, &hdr->tag); in decode_compound_hdr_arg()
159 if (unlikely(status != 0)) in decode_compound_hdr_arg()
160 return status; in decode_compound_hdr_arg()
198 __be32 status; in decode_getattr_args() local
200 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
201 if (unlikely(status != 0)) in decode_getattr_args()
203 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
205 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_getattr_args()
206 return status; in decode_getattr_args()
212 __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
241 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
255 status = decode_fh(xdr, &args->cbl_fh); in decode_layoutrecall_args()
256 if (unlikely(status != 0)) in decode_layoutrecall_args()
261 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
266 status = decode_stateid(xdr, &args->cbl_stateid); in decode_layoutrecall_args()
267 if (unlikely(status != 0)) in decode_layoutrecall_args()
272 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
278 status = htonl(NFS4ERR_BADXDR); in decode_layoutrecall_args()
286 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_layoutrecall_args()
287 return status; in decode_layoutrecall_args()
296 __be32 status = 0; in decode_devicenotify_args() local
304 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
311 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
317 status = htonl(NFS4ERR_DELAY); in decode_devicenotify_args()
327 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
333 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
339 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
348 status = htonl(NFS4ERR_INVAL); in decode_devicenotify_args()
358 status = htonl(NFS4ERR_BADXDR); in decode_devicenotify_args()
374 __func__, ntohl(status), args->ndevs); in decode_devicenotify_args()
375 return status; in decode_devicenotify_args()
399 __be32 status; in decode_rc_list() local
401 status = decode_sessionid(xdr, &rc_list->rcl_sessionid); in decode_rc_list()
402 if (status) in decode_rc_list()
405 status = htonl(NFS4ERR_RESOURCE); in decode_rc_list()
426 status = 0; in decode_rc_list()
429 return status; in decode_rc_list()
438 __be32 status; in decode_cb_sequence_args() local
440 status = decode_sessionid(xdr, &args->csa_sessionid); in decode_cb_sequence_args()
441 if (status) in decode_cb_sequence_args()
444 status = htonl(NFS4ERR_RESOURCE); in decode_cb_sequence_args()
464 status = decode_rc_list(xdr, &args->csa_rclists[i]); in decode_cb_sequence_args()
465 if (status) { in decode_cb_sequence_args()
471 status = 0; in decode_cb_sequence_args()
484 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in decode_cb_sequence_args()
485 return status; in decode_cb_sequence_args()
499 __be32 *p, status; in decode_recallany_args() local
505 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
506 if (unlikely(status)) in decode_recallany_args()
507 return status; in decode_recallany_args()
625 __be32 status; in encode_compound_hdr_res() local
627 hdr->status = xdr_reserve_space(xdr, 4); in encode_compound_hdr_res()
628 if (unlikely(hdr->status == NULL)) in encode_compound_hdr_res()
630 status = encode_string(xdr, hdr->taglen, hdr->tag); in encode_compound_hdr_res()
631 if (unlikely(status != 0)) in encode_compound_hdr_res()
632 return status; in encode_compound_hdr_res()
654 __be32 status = res->status; in encode_getattr_res() local
656 if (unlikely(status != 0)) in encode_getattr_res()
658 status = encode_attr_bitmap(xdr, res->bitmap, &savep); in encode_getattr_res()
659 if (unlikely(status != 0)) in encode_getattr_res()
661 status = encode_attr_change(xdr, res->bitmap, res->change_attr); in encode_getattr_res()
662 if (unlikely(status != 0)) in encode_getattr_res()
664 status = encode_attr_size(xdr, res->bitmap, res->size); in encode_getattr_res()
665 if (unlikely(status != 0)) in encode_getattr_res()
667 status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); in encode_getattr_res()
668 if (unlikely(status != 0)) in encode_getattr_res()
670 status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); in encode_getattr_res()
673 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in encode_getattr_res()
674 return status; in encode_getattr_res()
697 __be32 status = res->csr_status; in encode_cb_sequence_res() local
699 if (unlikely(status != 0)) in encode_cb_sequence_res()
702 status = encode_sessionid(xdr, &res->csr_sessionid); in encode_cb_sequence_res()
703 if (status) in encode_cb_sequence_res()
715 dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); in encode_cb_sequence_res()
716 return status; in encode_cb_sequence_res()
792 __be32 status = preprocess_nfs41_op(nop, op_nr, op); in preprocess_nfs42_op() local
793 if (status != htonl(NFS4ERR_OP_ILLEGAL)) in preprocess_nfs42_op()
794 return status; in preprocess_nfs42_op()
830 __be32 status; in process_op() local
835 status = decode_op_hdr(xdr_in, &op_nr); in process_op()
836 if (unlikely(status)) in process_op()
837 return status; in process_op()
844 status = preprocess_nfs4_op(op_nr, &op); in process_op()
847 status = preprocess_nfs41_op(nop, op_nr, &op); in process_op()
850 status = preprocess_nfs42_op(nop, op_nr, &op); in process_op()
853 status = htonl(NFS4ERR_MINOR_VERS_MISMATCH); in process_op()
856 if (status == htonl(NFS4ERR_OP_ILLEGAL)) in process_op()
858 if (status) in process_op()
862 status = cps->drc_status; in process_op()
868 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
869 if (likely(status == 0)) in process_op()
870 status = op->process_op(argp, resp, cps); in process_op()
872 status = htonl(NFS4ERR_RESOURCE); in process_op()
875 res = encode_op_hdr(xdr_out, op_nr, status); in process_op()
878 if (op->encode_res != NULL && status == 0) in process_op()
879 status = op->encode_res(rqstp, xdr_out, resp); in process_op()
880 dprintk("%s: done, status = %d\n", __func__, ntohl(status)); in process_op()
881 return status; in process_op()
892 __be32 *p, status; in nfs4_callback_compound() local
908 status = decode_compound_hdr_arg(&xdr_in, &hdr_arg); in nfs4_callback_compound()
909 if (status == htonl(NFS4ERR_RESOURCE)) in nfs4_callback_compound()
924 while (status == 0 && nops != hdr_arg.nops) { in nfs4_callback_compound()
925 status = process_op(nops, rqstp, &xdr_in, in nfs4_callback_compound()
932 if (unlikely(status == htonl(NFS4ERR_RESOURCE_HDR))) { in nfs4_callback_compound()
933 status = htonl(NFS4ERR_RESOURCE); in nfs4_callback_compound()
937 *hdr_res.status = status; in nfs4_callback_compound()
941 dprintk("%s: done, status = %u\n", __func__, ntohl(status)); in nfs4_callback_compound()