Lines Matching refs:status
58 int status; in nfsd4_security_inode_setsecctx() local
61 status = security_inode_setsecctx(resfh->fh_dentry, in nfsd4_security_inode_setsecctx()
65 if (status) in nfsd4_security_inode_setsecctx()
121 __be32 status = nfs_ok; in nfsd4_check_open_attributes() local
126 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
129 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
133 return status; in nfsd4_check_open_attributes()
153 __be32 status; in do_set_nfs4_acl() local
155 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl()
156 if (status) in do_set_nfs4_acl()
178 __be32 status; in do_open_permission() local
193 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
195 return status; in do_open_permission()
229 __be32 status; in do_open_lookup() local
258 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
265 if (!status && open->op_label.len) in do_open_lookup()
273 if (nfsd_create_is_exclusive(open->op_createmode) && status == 0) in do_open_lookup()
283 status = nfsd_lookup(rqstp, current_fh, in do_open_lookup()
285 if (status) in do_open_lookup()
287 status = nfsd_check_obj_isreg(*resfh); in do_open_lookup()
288 if (status) in do_open_lookup()
299 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
302 return status; in do_open_lookup()
309 __be32 status; in do_open_fhandle() local
334 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
336 return status; in do_open_fhandle()
354 __be32 status; in nfsd4_open() local
383 status = nfsd4_process_open1(cstate, open, nn); in nfsd4_open()
384 if (status == nfserr_replay_me) { in nfsd4_open()
389 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_open()
390 if (status) in nfsd4_open()
394 status = nfserr_replay_me; in nfsd4_open()
396 if (status) in nfsd4_open()
399 status = open->op_xdr_error; in nfsd4_open()
403 status = nfsd4_check_open_attributes(rqstp, cstate, open); in nfsd4_open()
404 if (status) in nfsd4_open()
409 status = nfserr_grace; in nfsd4_open()
412 status = nfserr_no_grace; in nfsd4_open()
419 status = do_open_lookup(rqstp, cstate, open, &resfh); in nfsd4_open()
420 if (status) in nfsd4_open()
424 status = nfs4_check_open_reclaim(&open->op_clientid, in nfsd4_open()
426 if (status) in nfsd4_open()
433 status = do_open_fhandle(rqstp, cstate, open); in nfsd4_open()
434 if (status) in nfsd4_open()
442 status = nfserr_notsupp; in nfsd4_open()
447 status = nfserr_inval; in nfsd4_open()
455 status = nfsd4_process_open2(rqstp, resfh, open); in nfsd4_open()
456 WARN(status && open->op_created, in nfsd4_open()
458 be32_to_cpu(status)); in nfsd4_open()
459 if (reclaim && !status) in nfsd4_open()
468 nfsd4_bump_seqid(cstate, status); in nfsd4_open()
469 return status; in nfsd4_open()
482 if (!seqid_mutating_err(ntohl(op->status))) in nfsd4_open_omfg()
483 return op->status; in nfsd4_open_omfg()
485 return op->status; in nfsd4_open_omfg()
486 open->op_xdr_error = op->status; in nfsd4_open_omfg()
518 __be32 status; in nfsd4_putrootfh() local
521 status = exp_pseudoroot(rqstp, &cstate->current_fh); in nfsd4_putrootfh()
522 return status; in nfsd4_putrootfh()
595 __be32 status; in nfsd4_create() local
600 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_NOP); in nfsd4_create()
601 if (status) in nfsd4_create()
602 return status; in nfsd4_create()
604 status = check_attr_support(rqstp, cstate, create->cr_bmval, in nfsd4_create()
606 if (status) in nfsd4_create()
607 return status; in nfsd4_create()
612 status = nfsd_symlink(rqstp, &cstate->current_fh, in nfsd4_create()
618 status = nfserr_inval; in nfsd4_create()
623 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
629 status = nfserr_inval; in nfsd4_create()
634 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
640 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
646 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
653 status = nfsd_create(rqstp, &cstate->current_fh, in nfsd4_create()
659 status = nfserr_badtype; in nfsd4_create()
662 if (status) in nfsd4_create()
679 return status; in nfsd4_create()
687 __be32 status; in nfsd4_getattr() local
689 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in nfsd4_getattr()
690 if (status) in nfsd4_getattr()
691 return status; in nfsd4_getattr()
709 __be32 status; in nfsd4_link() local
711 status = nfsd_link(rqstp, &cstate->current_fh, in nfsd4_link()
713 if (!status) in nfsd4_link()
715 return status; in nfsd4_link()
756 __be32 status; in nfsd4_read() local
777 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_read()
780 if (status) { in nfsd4_read()
784 status = nfs_ok; in nfsd4_read()
788 return status; in nfsd4_read()
841 __be32 status; in nfsd4_remove() local
845 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, in nfsd4_remove()
847 if (!status) { in nfsd4_remove()
851 return status; in nfsd4_remove()
859 __be32 status; in nfsd4_rename() local
863 status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, in nfsd4_rename()
866 if (status) in nfsd4_rename()
867 return status; in nfsd4_rename()
945 __be32 status = nfs_ok; in nfsd4_setattr() local
949 status = nfs4_preprocess_stateid_op(rqstp, cstate, in nfsd4_setattr()
952 if (status) { in nfsd4_setattr()
954 return status; in nfsd4_setattr()
960 status = nfs_ok; in nfsd4_setattr()
962 status = check_attr_support(rqstp, cstate, setattr->sa_bmval, in nfsd4_setattr()
964 if (status) in nfsd4_setattr()
968 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, in nfsd4_setattr()
970 if (status) in nfsd4_setattr()
973 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, in nfsd4_setattr()
975 if (status) in nfsd4_setattr()
977 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, in nfsd4_setattr()
981 return status; in nfsd4_setattr()
991 __be32 status = nfs_ok; in nfsd4_write() local
1001 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_write()
1003 if (status) { in nfsd4_write()
1005 return status; in nfsd4_write()
1015 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_write()
1023 return status; in nfsd4_write()
1031 __be32 status; in nfsd4_verify_copy() local
1036 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->save_fh, in nfsd4_verify_copy()
1038 if (status) { in nfsd4_verify_copy()
1043 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_verify_copy()
1045 if (status) { in nfsd4_verify_copy()
1053 status = nfserr_wrong_type; in nfsd4_verify_copy()
1058 return status; in nfsd4_verify_copy()
1072 __be32 status; in nfsd4_clone() local
1074 status = nfsd4_verify_copy(rqstp, cstate, &clone->cl_src_stateid, &src, in nfsd4_clone()
1076 if (status) in nfsd4_clone()
1079 status = nfsd4_clone_file_range(src->nf_file, clone->cl_src_pos, in nfsd4_clone()
1086 return status; in nfsd4_clone()
1189 __be32 status; in nfsd4_do_copy() local
1197 status = nfserrno(bytes); in nfsd4_do_copy()
1200 status = nfs_ok; in nfsd4_do_copy()
1205 return status; in nfsd4_do_copy()
1259 __be32 status; in nfsd4_copy() local
1262 status = nfsd4_verify_copy(rqstp, cstate, ©->cp_src_stateid, in nfsd4_copy()
1265 if (status) in nfsd4_copy()
1274 status = nfserrno(-ENOMEM); in nfsd4_copy()
1295 status = nfs_ok; in nfsd4_copy()
1297 status = nfsd4_do_copy(copy, 1); in nfsd4_copy()
1299 return status; in nfsd4_copy()
1329 __be32 status = 0; in nfsd4_offload_cancel() local
1337 status = nfserr_bad_stateid; in nfsd4_offload_cancel()
1339 return status; in nfsd4_offload_cancel()
1346 __be32 status; in nfsd4_fallocate() local
1349 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_fallocate()
1352 if (status != nfs_ok) { in nfsd4_fallocate()
1354 return status; in nfsd4_fallocate()
1357 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1362 return status; in nfsd4_fallocate()
1370 __be32 status = 0; in nfsd4_offload_status() local
1379 status = nfserr_bad_stateid; in nfsd4_offload_status()
1381 return status; in nfsd4_offload_status()
1405 __be32 status; in nfsd4_seek() local
1408 status = nfs4_preprocess_stateid_op(rqstp, cstate, &cstate->current_fh, in nfsd4_seek()
1411 if (status) { in nfsd4_seek()
1413 return status; in nfsd4_seek()
1424 status = nfserr_union_notsupp; in nfsd4_seek()
1434 status = nfserrno(seek->seek_pos); in nfsd4_seek()
1440 return status; in nfsd4_seek()
1454 __be32 status; in _nfsd4_verify() local
1456 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); in _nfsd4_verify()
1457 if (status) in _nfsd4_verify()
1458 return status; in _nfsd4_verify()
1460 status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); in _nfsd4_verify()
1461 if (status) in _nfsd4_verify()
1462 return status; in _nfsd4_verify()
1479 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, in _nfsd4_verify()
1488 if (status == nfserr_resource) in _nfsd4_verify()
1489 status = nfserr_not_same; in _nfsd4_verify()
1490 if (status) in _nfsd4_verify()
1495 status = nfserr_not_same; in _nfsd4_verify()
1499 status = nfserr_same; in _nfsd4_verify()
1503 return status; in _nfsd4_verify()
1510 __be32 status; in nfsd4_nverify() local
1512 status = _nfsd4_verify(rqstp, cstate, &u->verify); in nfsd4_nverify()
1513 return status == nfserr_not_same ? nfs_ok : status; in nfsd4_nverify()
1520 __be32 status; in nfsd4_verify() local
1522 status = _nfsd4_verify(rqstp, cstate, &u->nverify); in nfsd4_verify()
1523 return status == nfserr_same ? nfs_ok : status; in nfsd4_verify()
1835 if (first_op->status == nfserr_op_illegal) in nfs41_check_op_ordering()
1928 __be32 status; in nfsd4_proc_compound() local
1949 status = nfserr_minor_vers_mismatch; in nfsd4_proc_compound()
1952 status = nfserr_resource; in nfsd4_proc_compound()
1956 status = nfs41_check_op_ordering(args); in nfsd4_proc_compound()
1957 if (status) { in nfsd4_proc_compound()
1959 op->status = status; in nfsd4_proc_compound()
1965 while (!status && resp->opcnt < args->opcnt) { in nfsd4_proc_compound()
1973 if (op->status) { in nfsd4_proc_compound()
1975 op->status = nfsd4_open_omfg(rqstp, cstate, op); in nfsd4_proc_compound()
1981 op->status = nfserr_nofilehandle; in nfsd4_proc_compound()
1986 op->status = nfserr_moved; in nfsd4_proc_compound()
2005 op->status = nfsd4_check_resp_size(resp, plen); in nfsd4_proc_compound()
2008 if (op->status) in nfsd4_proc_compound()
2013 op->status = op->opdesc->op_func(rqstp, cstate, &op->u); in nfsd4_proc_compound()
2016 if (cstate->status == nfserr_replay_cache) { in nfsd4_proc_compound()
2018 status = op->status; in nfsd4_proc_compound()
2021 if (!op->status) { in nfsd4_proc_compound()
2029 op->status = check_nfsd_access(current_fh->fh_export, rqstp); in nfsd4_proc_compound()
2032 if (op->status == nfserr_replay_me) { in nfsd4_proc_compound()
2035 status = op->status = op->replay->rp_status; in nfsd4_proc_compound()
2038 status = op->status; in nfsd4_proc_compound()
2041 trace_nfsd_compound_status(args->opcnt, resp->opcnt, status, in nfsd4_proc_compound()
2048 cstate->status = status; in nfsd4_proc_compound()
2055 dprintk("nfsv4 compound returned %d\n", ntohl(status)); in nfsd4_proc_compound()
2056 return status; in nfsd4_proc_compound()
2762 if (op->opnum == OP_ILLEGAL || op->status == nfserr_notsupp) in nfsd4_max_reply()