• Home
  • Raw
  • Download

Lines Matching refs:status

296 	int status = 0;  in ocfs2_commit_cache()  local
313 status = jbd2_journal_flush(journal->j_journal); in ocfs2_commit_cache()
315 if (status < 0) { in ocfs2_commit_cache()
317 mlog_errno(status); in ocfs2_commit_cache()
332 return status; in ocfs2_commit_cache()
415 int status, old_nblocks; in ocfs2_extend_trans() local
428 status = 1; in ocfs2_extend_trans()
430 status = jbd2_journal_extend(handle, nblocks); in ocfs2_extend_trans()
431 if (status < 0) { in ocfs2_extend_trans()
432 mlog_errno(status); in ocfs2_extend_trans()
437 if (status > 0) { in ocfs2_extend_trans()
439 status = jbd2_journal_restart(handle, in ocfs2_extend_trans()
441 if (status < 0) { in ocfs2_extend_trans()
442 mlog_errno(status); in ocfs2_extend_trans()
447 status = 0; in ocfs2_extend_trans()
449 return status; in ocfs2_extend_trans()
460 int status, old_nblks; in ocfs2_allocate_extend_trans() local
470 status = jbd2_journal_extend(handle, OCFS2_MAX_TRANS_DATA); in ocfs2_allocate_extend_trans()
471 if (status < 0) { in ocfs2_allocate_extend_trans()
472 mlog_errno(status); in ocfs2_allocate_extend_trans()
476 if (status > 0) { in ocfs2_allocate_extend_trans()
477 status = jbd2_journal_restart(handle, OCFS2_MAX_TRANS_DATA); in ocfs2_allocate_extend_trans()
478 if (status < 0) in ocfs2_allocate_extend_trans()
479 mlog_errno(status); in ocfs2_allocate_extend_trans()
483 return status; in ocfs2_allocate_extend_trans()
641 int status; in __ocfs2_journal_access() local
690 status = jbd2_journal_get_write_access(handle, bh); in __ocfs2_journal_access()
694 status = jbd2_journal_get_undo_access(handle, bh); in __ocfs2_journal_access()
698 status = -EINVAL; in __ocfs2_journal_access()
701 if (!status && ocfs2_meta_ecc(osb) && triggers) in __ocfs2_journal_access()
705 if (status < 0) in __ocfs2_journal_access()
707 status, type); in __ocfs2_journal_access()
709 return status; in __ocfs2_journal_access()
775 int status; in ocfs2_journal_dirty() local
779 status = jbd2_journal_dirty_metadata(handle, bh); in ocfs2_journal_dirty()
780 if (status) { in ocfs2_journal_dirty()
781 mlog_errno(status); in ocfs2_journal_dirty()
788 handle->h_err = status; in ocfs2_journal_dirty()
790 jbd2_journal_abort(journal, status); in ocfs2_journal_dirty()
817 int status = -1; in ocfs2_journal_init() local
833 status = -EACCES; in ocfs2_journal_init()
834 mlog_errno(status); in ocfs2_journal_init()
841 status = -EACCES; in ocfs2_journal_init()
851 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); in ocfs2_journal_init()
852 if (status < 0) { in ocfs2_journal_init()
853 if (status != -ERESTARTSYS) in ocfs2_journal_init()
864 status = -EINVAL; in ocfs2_journal_init()
876 status = -EINVAL; in ocfs2_journal_init()
893 status = 0; in ocfs2_journal_init()
895 if (status < 0) { in ocfs2_journal_init()
905 return status; in ocfs2_journal_init()
921 int status; in ocfs2_journal_toggle_dirty() local
945 status = ocfs2_write_block(osb, bh, INODE_CACHE(journal->j_inode)); in ocfs2_journal_toggle_dirty()
946 if (status < 0) in ocfs2_journal_toggle_dirty()
947 mlog_errno(status); in ocfs2_journal_toggle_dirty()
949 return status; in ocfs2_journal_toggle_dirty()
959 int status = 0; in ocfs2_journal_shutdown() local
1001 status = jbd2_journal_flush(journal->j_journal); in ocfs2_journal_shutdown()
1003 if (status < 0) in ocfs2_journal_shutdown()
1004 mlog_errno(status); in ocfs2_journal_shutdown()
1008 if (!jbd2_journal_destroy(journal->j_journal) && !status) { in ocfs2_journal_shutdown()
1013 status = ocfs2_journal_toggle_dirty(osb, 0, 0); in ocfs2_journal_shutdown()
1014 if (status < 0) in ocfs2_journal_shutdown()
1015 mlog_errno(status); in ocfs2_journal_shutdown()
1054 int status = 0; in ocfs2_journal_load() local
1061 status = jbd2_journal_load(journal->j_journal); in ocfs2_journal_load()
1062 if (status < 0) { in ocfs2_journal_load()
1071 status = jbd2_journal_flush(journal->j_journal); in ocfs2_journal_load()
1073 if (status < 0) in ocfs2_journal_load()
1074 mlog_errno(status); in ocfs2_journal_load()
1077 status = ocfs2_journal_toggle_dirty(osb, 1, replayed); in ocfs2_journal_load()
1078 if (status < 0) { in ocfs2_journal_load()
1079 mlog_errno(status); in ocfs2_journal_load()
1088 status = PTR_ERR(osb->commit_task); in ocfs2_journal_load()
1091 "error=%d", status); in ocfs2_journal_load()
1098 return status; in ocfs2_journal_load()
1106 int status; in ocfs2_journal_wipe() local
1110 status = jbd2_journal_wipe(journal->j_journal, full); in ocfs2_journal_wipe()
1111 if (status < 0) { in ocfs2_journal_wipe()
1112 mlog_errno(status); in ocfs2_journal_wipe()
1116 status = ocfs2_journal_toggle_dirty(journal->j_osb, 0, 0); in ocfs2_journal_wipe()
1117 if (status < 0) in ocfs2_journal_wipe()
1118 mlog_errno(status); in ocfs2_journal_wipe()
1121 return status; in ocfs2_journal_wipe()
1153 int status = 0; in ocfs2_force_read_journal() local
1162 status = ocfs2_extent_map_get_blocks(inode, v_blkno, in ocfs2_force_read_journal()
1164 if (status < 0) { in ocfs2_force_read_journal()
1165 mlog_errno(status); in ocfs2_force_read_journal()
1181 status = ocfs2_read_blocks_sync(osb, p_blkno, 1, &bh); in ocfs2_force_read_journal()
1182 if (status < 0) { in ocfs2_force_read_journal()
1183 mlog_errno(status); in ocfs2_force_read_journal()
1195 return status; in ocfs2_force_read_journal()
1367 int status, node_num, slot_num; in __ocfs2_recovery_thread() local
1380 status = ocfs2_wait_on_mount(osb); in __ocfs2_recovery_thread()
1381 if (status < 0) { in __ocfs2_recovery_thread()
1388 status = -ENOMEM; in __ocfs2_recovery_thread()
1393 status = ocfs2_super_lock(osb, 1); in __ocfs2_recovery_thread()
1394 if (status < 0) { in __ocfs2_recovery_thread()
1395 mlog_errno(status); in __ocfs2_recovery_thread()
1399 status = ocfs2_compute_replay_slots(osb); in __ocfs2_recovery_thread()
1400 if (status < 0) in __ocfs2_recovery_thread()
1401 mlog_errno(status); in __ocfs2_recovery_thread()
1416 status = 0; in __ocfs2_recovery_thread()
1435 status = ocfs2_recover_node(osb, node_num, slot_num); in __ocfs2_recovery_thread()
1437 if (!status) { in __ocfs2_recovery_thread()
1442 status, node_num, in __ocfs2_recovery_thread()
1450 trace_ocfs2_recovery_thread_end(status); in __ocfs2_recovery_thread()
1453 status = ocfs2_check_journals_nolocks(osb); in __ocfs2_recovery_thread()
1454 status = (status == -EROFS) ? 0 : status; in __ocfs2_recovery_thread()
1455 if (status < 0) in __ocfs2_recovery_thread()
1456 mlog_errno(status); in __ocfs2_recovery_thread()
1465 status = PTR_ERR(qrec); in __ocfs2_recovery_thread()
1466 mlog_errno(status); in __ocfs2_recovery_thread()
1483 if (!status && !ocfs2_recovery_completed(osb)) { in __ocfs2_recovery_thread()
1501 complete_and_exit(NULL, status); in __ocfs2_recovery_thread()
1536 int status = -EACCES; in ocfs2_read_journal_inode() local
1544 mlog_errno(status); in ocfs2_read_journal_inode()
1549 status = ocfs2_read_inode_block_full(inode, bh, OCFS2_BH_IGNORE_CACHE); in ocfs2_read_journal_inode()
1550 if (status < 0) { in ocfs2_read_journal_inode()
1551 mlog_errno(status); in ocfs2_read_journal_inode()
1555 status = 0; in ocfs2_read_journal_inode()
1559 if (status || !ret_inode) in ocfs2_read_journal_inode()
1564 return status; in ocfs2_read_journal_inode()
1573 int status; in ocfs2_replay_journal() local
1582 status = ocfs2_read_journal_inode(osb, slot_num, &bh, &inode); in ocfs2_replay_journal()
1583 if (status) { in ocfs2_replay_journal()
1584 mlog_errno(status); in ocfs2_replay_journal()
1605 status = -EBUSY; in ocfs2_replay_journal()
1611 status = ocfs2_inode_lock_full(inode, &bh, 1, OCFS2_META_LOCK_RECOVERY); in ocfs2_replay_journal()
1612 if (status < 0) { in ocfs2_replay_journal()
1613 trace_ocfs2_replay_journal_lock_err(status); in ocfs2_replay_journal()
1614 if (status != -ERESTARTSYS) in ocfs2_replay_journal()
1641 status = ocfs2_force_read_journal(inode); in ocfs2_replay_journal()
1642 if (status < 0) { in ocfs2_replay_journal()
1643 mlog_errno(status); in ocfs2_replay_journal()
1650 status = -EIO; in ocfs2_replay_journal()
1654 status = jbd2_journal_load(journal); in ocfs2_replay_journal()
1655 if (status < 0) { in ocfs2_replay_journal()
1656 mlog_errno(status); in ocfs2_replay_journal()
1667 status = jbd2_journal_flush(journal); in ocfs2_replay_journal()
1669 if (status < 0) in ocfs2_replay_journal()
1670 mlog_errno(status); in ocfs2_replay_journal()
1683 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode)); in ocfs2_replay_journal()
1684 if (status < 0) in ocfs2_replay_journal()
1685 mlog_errno(status); in ocfs2_replay_journal()
1703 return status; in ocfs2_replay_journal()
1721 int status = 0; in ocfs2_recover_node() local
1731 status = ocfs2_replay_journal(osb, node_num, slot_num); in ocfs2_recover_node()
1732 if (status < 0) { in ocfs2_recover_node()
1733 if (status == -EBUSY) { in ocfs2_recover_node()
1735 status = 0; in ocfs2_recover_node()
1738 mlog_errno(status); in ocfs2_recover_node()
1743 status = ocfs2_begin_local_alloc_recovery(osb, slot_num, &la_copy); in ocfs2_recover_node()
1744 if (status < 0) { in ocfs2_recover_node()
1745 mlog_errno(status); in ocfs2_recover_node()
1752 status = ocfs2_begin_truncate_log_recovery(osb, slot_num, &tl_copy); in ocfs2_recover_node()
1753 if (status < 0) in ocfs2_recover_node()
1754 mlog_errno(status); in ocfs2_recover_node()
1758 status = ocfs2_clear_slot(osb, slot_num); in ocfs2_recover_node()
1759 if (status < 0) in ocfs2_recover_node()
1760 mlog_errno(status); in ocfs2_recover_node()
1766 status = 0; in ocfs2_recover_node()
1769 return status; in ocfs2_recover_node()
1778 int status, flags; in ocfs2_trylock_journal() local
1785 status = -EACCES; in ocfs2_trylock_journal()
1792 status = -EACCES; in ocfs2_trylock_journal()
1798 status = ocfs2_inode_lock_full(inode, NULL, 1, flags); in ocfs2_trylock_journal()
1799 if (status < 0) { in ocfs2_trylock_journal()
1800 if (status != -EAGAIN) in ocfs2_trylock_journal()
1801 mlog_errno(status); in ocfs2_trylock_journal()
1809 return status; in ocfs2_trylock_journal()
1817 int status, i; in ocfs2_mark_dead_nodes() local
1827 status = ocfs2_read_journal_inode(osb, i, &bh, NULL); in ocfs2_mark_dead_nodes()
1828 if (status) { in ocfs2_mark_dead_nodes()
1829 mlog_errno(status); in ocfs2_mark_dead_nodes()
1848 status = ocfs2_slot_to_node_num_locked(osb, i, &node_num); in ocfs2_mark_dead_nodes()
1849 if (status == -ENOENT) { in ocfs2_mark_dead_nodes()
1863 status = ocfs2_trylock_journal(osb, i); in ocfs2_mark_dead_nodes()
1864 if (!status) { in ocfs2_mark_dead_nodes()
1869 } else if ((status < 0) && (status != -EAGAIN)) { in ocfs2_mark_dead_nodes()
1870 mlog_errno(status); in ocfs2_mark_dead_nodes()
1875 status = 0; in ocfs2_mark_dead_nodes()
1877 return status; in ocfs2_mark_dead_nodes()
1924 int status, i; in ocfs2_queue_orphan_scan() local
1935 status = ocfs2_orphan_scan_lock(osb, &seqno); in ocfs2_queue_orphan_scan()
1936 if (status < 0) { in ocfs2_queue_orphan_scan()
1937 if (status != -EAGAIN) in ocfs2_queue_orphan_scan()
1938 mlog_errno(status); in ocfs2_queue_orphan_scan()
2084 int status; in ocfs2_queue_orphans() local
2097 status = -ENOENT; in ocfs2_queue_orphans()
2098 mlog_errno(status); in ocfs2_queue_orphans()
2099 return status; in ocfs2_queue_orphans()
2103 status = ocfs2_inode_lock(orphan_dir_inode, NULL, 0); in ocfs2_queue_orphans()
2104 if (status < 0) { in ocfs2_queue_orphans()
2105 mlog_errno(status); in ocfs2_queue_orphans()
2109 status = ocfs2_dir_foreach(orphan_dir_inode, &priv.ctx); in ocfs2_queue_orphans()
2110 if (status) { in ocfs2_queue_orphans()
2111 mlog_errno(status); in ocfs2_queue_orphans()
2122 return status; in ocfs2_queue_orphans()
2292 int status; in ocfs2_commit_thread() local
2307 status = ocfs2_commit_cache(osb); in ocfs2_commit_thread()
2308 if (status < 0) { in ocfs2_commit_thread()
2314 "already aborted.\n", status); in ocfs2_commit_thread()