Lines Matching refs:status
296 int status = 0;
313 status = jbd2_journal_flush(journal->j_journal);
315 if (status < 0) {
317 mlog_errno(status);
332 return status;
415 int status, old_nblocks;
428 status = 1;
430 status = jbd2_journal_extend(handle, nblocks, 0);
431 if (status < 0) {
432 mlog_errno(status);
437 if (status > 0) {
439 status = jbd2_journal_restart(handle,
441 if (status < 0) {
442 mlog_errno(status);
447 status = 0;
449 return status;
460 int status, old_nblks;
470 status = jbd2_journal_extend(handle, OCFS2_MAX_TRANS_DATA, 0);
471 if (status < 0) {
472 mlog_errno(status);
476 if (status > 0) {
477 status = jbd2_journal_restart(handle, OCFS2_MAX_TRANS_DATA);
478 if (status < 0)
479 mlog_errno(status);
483 return status;
641 int status;
690 status = jbd2_journal_get_write_access(handle, bh);
694 status = jbd2_journal_get_undo_access(handle, bh);
698 status = -EINVAL;
701 if (!status && ocfs2_meta_ecc(osb) && triggers)
705 if (status < 0)
707 status, type);
709 return status;
775 int status;
779 status = jbd2_journal_dirty_metadata(handle, bh);
780 if (status) {
781 mlog_errno(status);
788 handle->h_err = status;
790 jbd2_journal_abort(journal, status);
817 int status = -1;
833 status = -EACCES;
834 mlog_errno(status);
841 status = -EACCES;
851 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
852 if (status < 0) {
853 if (status != -ERESTARTSYS)
864 status = -EINVAL;
876 status = -EINVAL;
897 status = 0;
899 if (status < 0) {
909 return status;
925 int status;
949 status = ocfs2_write_block(osb, bh, INODE_CACHE(journal->j_inode));
950 if (status < 0)
951 mlog_errno(status);
953 return status;
963 int status = 0;
1005 status = jbd2_journal_flush(journal->j_journal);
1007 if (status < 0)
1008 mlog_errno(status);
1012 if (!jbd2_journal_destroy(journal->j_journal) && !status) {
1017 status = ocfs2_journal_toggle_dirty(osb, 0, 0);
1018 if (status < 0)
1019 mlog_errno(status);
1058 int status = 0;
1065 status = jbd2_journal_load(journal->j_journal);
1066 if (status < 0) {
1075 status = jbd2_journal_flush(journal->j_journal);
1077 if (status < 0)
1078 mlog_errno(status);
1081 status = ocfs2_journal_toggle_dirty(osb, 1, replayed);
1082 if (status < 0) {
1083 mlog_errno(status);
1092 status = PTR_ERR(osb->commit_task);
1095 "error=%d", status);
1102 return status;
1110 int status;
1114 status = jbd2_journal_wipe(journal->j_journal, full);
1115 if (status < 0) {
1116 mlog_errno(status);
1120 status = ocfs2_journal_toggle_dirty(journal->j_osb, 0, 0);
1121 if (status < 0)
1122 mlog_errno(status);
1125 return status;
1157 int status = 0;
1166 status = ocfs2_extent_map_get_blocks(inode, v_blkno,
1168 if (status < 0) {
1169 mlog_errno(status);
1185 status = ocfs2_read_blocks_sync(osb, p_blkno, 1, &bh);
1186 if (status < 0) {
1187 mlog_errno(status);
1199 return status;
1371 int status, node_num, slot_num;
1384 status = ocfs2_wait_on_mount(osb);
1385 if (status < 0) {
1392 status = -ENOMEM;
1397 status = ocfs2_super_lock(osb, 1);
1398 if (status < 0) {
1399 mlog_errno(status);
1403 status = ocfs2_compute_replay_slots(osb);
1404 if (status < 0)
1405 mlog_errno(status);
1420 status = 0;
1439 status = ocfs2_recover_node(osb, node_num, slot_num);
1441 if (!status) {
1446 status, node_num,
1454 trace_ocfs2_recovery_thread_end(status);
1457 status = ocfs2_check_journals_nolocks(osb);
1458 status = (status == -EROFS) ? 0 : status;
1459 if (status < 0)
1460 mlog_errno(status);
1469 status = PTR_ERR(qrec);
1470 mlog_errno(status);
1487 if (!status && !ocfs2_recovery_completed(osb)) {
1505 complete_and_exit(NULL, status);
1540 int status = -EACCES;
1548 mlog_errno(status);
1553 status = ocfs2_read_inode_block_full(inode, bh, OCFS2_BH_IGNORE_CACHE);
1554 if (status < 0) {
1555 mlog_errno(status);
1559 status = 0;
1563 if (status || !ret_inode)
1568 return status;
1577 int status;
1586 status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode);
1587 if (status) {
1588 mlog_errno(status);
1609 status = -EBUSY;
1615 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY);
1616 if (status < 0) {
1617 trace_ocfs2_replay_journal_lock_err(status);
1618 if (status != -ERESTARTSYS)
1645 status = ocfs2_force_read_journal(inode);
1646 if (status < 0) {
1647 mlog_errno(status);
1654 status = -EIO;
1658 status = jbd2_journal_load(journal);
1659 if (status < 0) {
1660 mlog_errno(status);
1671 status = jbd2_journal_flush(journal);
1673 if (status < 0)
1674 mlog_errno(status);
1687 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode));
1688 if (status < 0)
1689 mlog_errno(status);
1707 return status;
1725 int status = 0;
1735 status = ocfs2_replay_journal(osb, node_num, slot_num);
1736 if (status < 0) {
1737 if (status == -EBUSY) {
1739 status = 0;
1742 mlog_errno(status);
1747 status = ocfs2_begin_local_alloc_recovery(osb, slot_num, &la_copy);
1748 if (status < 0) {
1749 mlog_errno(status);
1756 status = ocfs2_begin_truncate_log_recovery(osb, slot_num, &tl_copy);
1757 if (status < 0)
1758 mlog_errno(status);
1762 status = ocfs2_clear_slot(osb, slot_num);
1763 if (status < 0)
1764 mlog_errno(status);
1770 status = 0;
1773 return status;
1782 int status, flags;
1789 status = -EACCES;
1796 status = -EACCES;
1802 status = ocfs2_inode_lock_full(inode, NULL, 1, flags);
1803 if (status < 0) {
1804 if (status != -EAGAIN)
1805 mlog_errno(status);
1813 return status;
1821 int status, i;
1831 status = ocfs2_read_journal_inode(osb, i, &bh, NULL);
1832 if (status) {
1833 mlog_errno(status);
1852 status = ocfs2_slot_to_node_num_locked(osb, i, &node_num);
1853 if (status == -ENOENT) {
1867 status = ocfs2_trylock_journal(osb, i);
1868 if (!status) {
1873 } else if ((status < 0) && (status != -EAGAIN)) {
1874 mlog_errno(status);
1879 status = 0;
1881 return status;
1928 int status, i;
1939 status = ocfs2_orphan_scan_lock(osb, &seqno);
1940 if (status < 0) {
1941 if (status != -EAGAIN)
1942 mlog_errno(status);
2088 int status;
2101 status = -ENOENT;
2102 mlog_errno(status);
2103 return status;
2107 status = ocfs2_inode_lock(orphan_dir_inode, NULL, 0);
2108 if (status < 0) {
2109 mlog_errno(status);
2113 status = ocfs2_dir_foreach(orphan_dir_inode, &priv.ctx);
2114 if (status) {
2115 mlog_errno(status);
2126 return status;
2296 int status;
2311 status = ocfs2_commit_cache(osb);
2312 if (status < 0) {
2317 mlog(ML_ERROR, "status = %d, journal is "
2318 "already aborted.\n", status);