Lines Matching refs:status
410 int status, can_lock, lock_level = 0; in ocfs2_read_locked_inode() local
413 status = -EINVAL; in ocfs2_read_locked_inode()
472 status = ocfs2_open_lock(inode); in ocfs2_read_locked_inode()
473 if (status) { in ocfs2_read_locked_inode()
475 mlog_errno(status); in ocfs2_read_locked_inode()
476 return status; in ocfs2_read_locked_inode()
478 status = ocfs2_inode_lock(inode, NULL, lock_level); in ocfs2_read_locked_inode()
479 if (status) { in ocfs2_read_locked_inode()
481 mlog_errno(status); in ocfs2_read_locked_inode()
482 return status; in ocfs2_read_locked_inode()
487 status = ocfs2_try_open_lock(inode, 0); in ocfs2_read_locked_inode()
488 if (status) { in ocfs2_read_locked_inode()
490 return status; in ocfs2_read_locked_inode()
496 status = ocfs2_filecheck_read_inode_block_full(inode, in ocfs2_read_locked_inode()
499 status = ocfs2_filecheck_read_inode_block_full(inode, in ocfs2_read_locked_inode()
502 status = ocfs2_read_inode_block_full(inode, in ocfs2_read_locked_inode()
505 status = ocfs2_read_blocks_sync(osb, args->fi_blkno, 1, &bh); in ocfs2_read_locked_inode()
510 if (!status && !buffer_jbd(bh)) { in ocfs2_read_locked_inode()
512 status = ocfs2_filecheck_validate_inode_block( in ocfs2_read_locked_inode()
515 status = ocfs2_filecheck_repair_inode_block( in ocfs2_read_locked_inode()
518 status = ocfs2_validate_inode_block( in ocfs2_read_locked_inode()
522 if (status < 0) { in ocfs2_read_locked_inode()
523 mlog_errno(status); in ocfs2_read_locked_inode()
527 status = -EINVAL; in ocfs2_read_locked_inode()
554 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode)); in ocfs2_read_locked_inode()
555 if (status < 0) { in ocfs2_read_locked_inode()
556 mlog_errno(status); in ocfs2_read_locked_inode()
561 status = 0; in ocfs2_read_locked_inode()
567 if (status < 0) in ocfs2_read_locked_inode()
572 return status; in ocfs2_read_locked_inode()
584 int status = 0; in ocfs2_truncate_for_delete() local
600 status = PTR_ERR(handle); in ocfs2_truncate_for_delete()
602 mlog_errno(status); in ocfs2_truncate_for_delete()
606 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in ocfs2_truncate_for_delete()
609 if (status < 0) { in ocfs2_truncate_for_delete()
610 mlog_errno(status); in ocfs2_truncate_for_delete()
616 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_truncate_for_delete()
617 if (status < 0) { in ocfs2_truncate_for_delete()
618 mlog_errno(status); in ocfs2_truncate_for_delete()
625 status = ocfs2_commit_truncate(osb, inode, fe_bh); in ocfs2_truncate_for_delete()
626 if (status < 0) in ocfs2_truncate_for_delete()
627 mlog_errno(status); in ocfs2_truncate_for_delete()
633 return status; in ocfs2_truncate_for_delete()
641 int status; in ocfs2_remove_inode() local
652 status = -ENOENT; in ocfs2_remove_inode()
653 mlog_errno(status); in ocfs2_remove_inode()
658 status = ocfs2_inode_lock(inode_alloc_inode, &inode_alloc_bh, 1); in ocfs2_remove_inode()
659 if (status < 0) { in ocfs2_remove_inode()
662 mlog_errno(status); in ocfs2_remove_inode()
669 status = PTR_ERR(handle); in ocfs2_remove_inode()
670 mlog_errno(status); in ocfs2_remove_inode()
675 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_remove_inode()
677 if (status < 0) { in ocfs2_remove_inode()
678 mlog_errno(status); in ocfs2_remove_inode()
684 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode()
686 if (status < 0) { in ocfs2_remove_inode()
687 mlog_errno(status); in ocfs2_remove_inode()
698 status = ocfs2_free_dinode(handle, inode_alloc_inode, in ocfs2_remove_inode()
700 if (status < 0) in ocfs2_remove_inode()
701 mlog_errno(status); in ocfs2_remove_inode()
712 return status; in ocfs2_remove_inode()
753 int status, orphaned_slot = -1; in ocfs2_wipe_inode() local
762 status = ocfs2_check_orphan_recovery_state(osb, orphaned_slot); in ocfs2_wipe_inode()
763 if (status) in ocfs2_wipe_inode()
764 return status; in ocfs2_wipe_inode()
770 status = -ENOENT; in ocfs2_wipe_inode()
771 mlog_errno(status); in ocfs2_wipe_inode()
779 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_wipe_inode()
780 if (status < 0) { in ocfs2_wipe_inode()
783 mlog_errno(status); in ocfs2_wipe_inode()
792 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode()
793 if (status < 0) { in ocfs2_wipe_inode()
794 mlog_errno(status); in ocfs2_wipe_inode()
800 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode()
801 if (status) { in ocfs2_wipe_inode()
802 mlog_errno(status); in ocfs2_wipe_inode()
808 status = ocfs2_xattr_remove(inode, di_bh); in ocfs2_wipe_inode()
809 if (status < 0) { in ocfs2_wipe_inode()
810 mlog_errno(status); in ocfs2_wipe_inode()
814 status = ocfs2_remove_refcount_tree(inode, di_bh); in ocfs2_wipe_inode()
815 if (status < 0) { in ocfs2_wipe_inode()
816 mlog_errno(status); in ocfs2_wipe_inode()
820 status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode, in ocfs2_wipe_inode()
822 if (status < 0) in ocfs2_wipe_inode()
823 mlog_errno(status); in ocfs2_wipe_inode()
827 return status; in ocfs2_wipe_inode()
836 return status; in ocfs2_wipe_inode()
893 int status = 0, reason = 0; in ocfs2_query_inode_wipe() local
933 status = -EEXIST; in ocfs2_query_inode_wipe()
945 status = -EEXIST; in ocfs2_query_inode_wipe()
946 mlog_errno(status); in ocfs2_query_inode_wipe()
962 status = ocfs2_try_open_lock(inode, 1); in ocfs2_query_inode_wipe()
963 if (status == -EAGAIN) { in ocfs2_query_inode_wipe()
964 status = 0; in ocfs2_query_inode_wipe()
968 if (status < 0) { in ocfs2_query_inode_wipe()
969 mlog_errno(status); in ocfs2_query_inode_wipe()
977 trace_ocfs2_query_inode_wipe_end(status, reason); in ocfs2_query_inode_wipe()
978 return status; in ocfs2_query_inode_wipe()
996 int wipe, status; in ocfs2_delete_inode() local
1032 status = ocfs2_nfs_sync_lock(OCFS2_SB(inode->i_sb), 0); in ocfs2_delete_inode()
1033 if (status < 0) { in ocfs2_delete_inode()
1034 mlog(ML_ERROR, "getting nfs sync lock(PR) failed %d\n", status); in ocfs2_delete_inode()
1046 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_delete_inode()
1047 if (status < 0) { in ocfs2_delete_inode()
1048 if (status != -ENOENT) in ocfs2_delete_inode()
1049 mlog_errno(status); in ocfs2_delete_inode()
1064 status = ocfs2_query_inode_wipe(inode, di_bh, &wipe); in ocfs2_delete_inode()
1065 if (!wipe || status < 0) { in ocfs2_delete_inode()
1069 if (status < 0) in ocfs2_delete_inode()
1070 mlog_errno(status); in ocfs2_delete_inode()
1081 status = ocfs2_wipe_inode(inode, di_bh); in ocfs2_delete_inode()
1082 if (status < 0) { in ocfs2_delete_inode()
1083 if (status != -EDEADLK) in ocfs2_delete_inode()
1084 mlog_errno(status); in ocfs2_delete_inode()
1114 int status; in ocfs2_clear_inode() local
1159 status = ocfs2_drop_inode_locks(inode); in ocfs2_clear_inode()
1160 if (status < 0) in ocfs2_clear_inode()
1161 mlog_errno(status); in ocfs2_clear_inode()
1252 int status = 0; in ocfs2_inode_revalidate() local
1259 status = -ENOENT; in ocfs2_inode_revalidate()
1266 status = -ENOENT; in ocfs2_inode_revalidate()
1273 status = ocfs2_inode_lock(inode, NULL, 0); in ocfs2_inode_revalidate()
1274 if (status < 0) { in ocfs2_inode_revalidate()
1275 if (status != -ENOENT) in ocfs2_inode_revalidate()
1276 mlog_errno(status); in ocfs2_inode_revalidate()
1281 return status; in ocfs2_inode_revalidate()
1293 int status; in ocfs2_mark_inode_dirty() local
1298 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_mark_inode_dirty()
1300 if (status < 0) { in ocfs2_mark_inode_dirty()
1301 mlog_errno(status); in ocfs2_mark_inode_dirty()
1327 return status; in ocfs2_mark_inode_dirty()