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