Lines Matching refs:status

408 	int status, can_lock, lock_level = 0;
411 status = -EINVAL;
470 status = ocfs2_open_lock(inode);
471 if (status) {
473 mlog_errno(status);
474 return status;
476 status = ocfs2_inode_lock(inode, NULL, lock_level);
477 if (status) {
479 mlog_errno(status);
480 return status;
485 status = ocfs2_try_open_lock(inode, 0);
486 if (status) {
488 return status;
494 status = ocfs2_filecheck_read_inode_block_full(inode,
497 status = ocfs2_filecheck_read_inode_block_full(inode,
500 status = ocfs2_read_inode_block_full(inode,
503 status = ocfs2_read_blocks_sync(osb, args->fi_blkno, 1, &bh);
508 if (!status && !buffer_jbd(bh)) {
510 status = ocfs2_filecheck_validate_inode_block(
513 status = ocfs2_filecheck_repair_inode_block(
516 status = ocfs2_validate_inode_block(
520 if (status < 0) {
521 mlog_errno(status);
525 status = -EINVAL;
552 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode));
553 if (status < 0) {
554 mlog_errno(status);
559 status = 0;
565 if (status < 0)
570 return status;
582 int status = 0;
598 status = PTR_ERR(handle);
600 mlog_errno(status);
604 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode),
607 if (status < 0) {
608 mlog_errno(status);
614 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh);
615 if (status < 0) {
616 mlog_errno(status);
623 status = ocfs2_commit_truncate(osb, inode, fe_bh);
624 if (status < 0)
625 mlog_errno(status);
631 return status;
639 int status;
650 status = -ENOENT;
651 mlog_errno(status);
656 status = ocfs2_inode_lock(inode_alloc_inode, &inode_alloc_bh, 1);
657 if (status < 0) {
660 mlog_errno(status);
667 status = PTR_ERR(handle);
668 mlog_errno(status);
673 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode,
675 if (status < 0) {
676 mlog_errno(status);
682 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
684 if (status < 0) {
685 mlog_errno(status);
696 status = ocfs2_free_dinode(handle, inode_alloc_inode,
698 if (status < 0)
699 mlog_errno(status);
710 return status;
751 int status, orphaned_slot = -1;
760 status = ocfs2_check_orphan_recovery_state(osb, orphaned_slot);
761 if (status)
762 return status;
768 status = -ENOENT;
769 mlog_errno(status);
777 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1);
778 if (status < 0) {
781 mlog_errno(status);
790 status = ocfs2_truncate_for_delete(osb, inode, di_bh);
791 if (status < 0) {
792 mlog_errno(status);
798 status = ocfs2_dx_dir_truncate(inode, di_bh);
799 if (status) {
800 mlog_errno(status);
806 status = ocfs2_xattr_remove(inode, di_bh);
807 if (status < 0) {
808 mlog_errno(status);
812 status = ocfs2_remove_refcount_tree(inode, di_bh);
813 if (status < 0) {
814 mlog_errno(status);
818 status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode,
820 if (status < 0)
821 mlog_errno(status);
825 return status;
834 return status;
891 int status = 0, reason = 0;
931 status = -EEXIST;
943 status = -EEXIST;
944 mlog_errno(status);
960 status = ocfs2_try_open_lock(inode, 1);
961 if (status == -EAGAIN) {
962 status = 0;
966 if (status < 0) {
967 mlog_errno(status);
975 trace_ocfs2_query_inode_wipe_end(status, reason);
976 return status;
994 int wipe, status;
1030 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0);
1031 if (status < 0) {
1032 mlog(ML_ERROR, "getting nfs sync lock(PR) failed %d\n", status);
1044 status = ocfs2_inode_lock(inode, &di_bh, 1);
1045 if (status < 0) {
1046 if (status != -ENOENT)
1047 mlog_errno(status);
1062 status = ocfs2_query_inode_wipe(inode, di_bh, &wipe);
1063 if (!wipe || status < 0) {
1067 if (status < 0)
1068 mlog_errno(status);
1079 status = ocfs2_wipe_inode(inode, di_bh);
1080 if (status < 0) {
1081 if (status != -EDEADLK)
1082 mlog_errno(status);
1112 int status;
1157 status = ocfs2_drop_inode_locks(inode);
1158 if (status < 0)
1159 mlog_errno(status);
1250 int status = 0;
1257 status = -ENOENT;
1264 status = -ENOENT;
1271 status = ocfs2_inode_lock(inode, NULL, 0);
1272 if (status < 0) {
1273 if (status != -ENOENT)
1274 mlog_errno(status);
1279 return status;
1291 int status;
1296 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
1298 if (status < 0) {
1299 mlog_errno(status);
1325 return status;