aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c43
1 files changed, 12 insertions, 31 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index faa2303dbf0a..7378277b17a4 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -303,8 +303,6 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb)
303 unsigned int flushed; 303 unsigned int flushed;
304 struct ocfs2_journal *journal = NULL; 304 struct ocfs2_journal *journal = NULL;
305 305
306 mlog_entry_void();
307
308 journal = osb->journal; 306 journal = osb->journal;
309 307
310 /* Flush all pending commits and checkpoint the journal. */ 308 /* Flush all pending commits and checkpoint the journal. */
@@ -425,7 +423,6 @@ int ocfs2_extend_trans(handle_t *handle, int nblocks)
425 return 0; 423 return 0;
426 424
427 old_nblocks = handle->h_buffer_credits; 425 old_nblocks = handle->h_buffer_credits;
428 mlog_entry_void();
429 426
430 mlog(0, "Trying to extend transaction by %d blocks\n", nblocks); 427 mlog(0, "Trying to extend transaction by %d blocks\n", nblocks);
431 428
@@ -622,12 +619,12 @@ static int __ocfs2_journal_access(handle_t *handle,
622 BUG_ON(!handle); 619 BUG_ON(!handle);
623 BUG_ON(!bh); 620 BUG_ON(!bh);
624 621
625 mlog_entry("bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %zu\n", 622 mlog(0, "bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %zu\n",
626 (unsigned long long)bh->b_blocknr, type, 623 (unsigned long long)bh->b_blocknr, type,
627 (type == OCFS2_JOURNAL_ACCESS_CREATE) ? 624 (type == OCFS2_JOURNAL_ACCESS_CREATE) ?
628 "OCFS2_JOURNAL_ACCESS_CREATE" : 625 "OCFS2_JOURNAL_ACCESS_CREATE" :
629 "OCFS2_JOURNAL_ACCESS_WRITE", 626 "OCFS2_JOURNAL_ACCESS_WRITE",
630 bh->b_size); 627 bh->b_size);
631 628
632 /* we can safely remove this assertion after testing. */ 629 /* we can safely remove this assertion after testing. */
633 if (!buffer_uptodate(bh)) { 630 if (!buffer_uptodate(bh)) {
@@ -737,8 +734,8 @@ void ocfs2_journal_dirty(handle_t *handle, struct buffer_head *bh)
737{ 734{
738 int status; 735 int status;
739 736
740 mlog_entry("(bh->b_blocknr=%llu)\n", 737 mlog(0, "(bh->b_blocknr=%llu)\n",
741 (unsigned long long)bh->b_blocknr); 738 (unsigned long long)bh->b_blocknr);
742 739
743 status = jbd2_journal_dirty_metadata(handle, bh); 740 status = jbd2_journal_dirty_metadata(handle, bh);
744 BUG_ON(status); 741 BUG_ON(status);
@@ -775,8 +772,6 @@ int ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty)
775 struct ocfs2_super *osb; 772 struct ocfs2_super *osb;
776 int inode_lock = 0; 773 int inode_lock = 0;
777 774
778 mlog_entry_void();
779
780 BUG_ON(!journal); 775 BUG_ON(!journal);
781 776
782 osb = journal->j_osb; 777 osb = journal->j_osb;
@@ -882,8 +877,6 @@ static int ocfs2_journal_toggle_dirty(struct ocfs2_super *osb,
882 struct buffer_head *bh = journal->j_bh; 877 struct buffer_head *bh = journal->j_bh;
883 struct ocfs2_dinode *fe; 878 struct ocfs2_dinode *fe;
884 879
885 mlog_entry_void();
886
887 fe = (struct ocfs2_dinode *)bh->b_data; 880 fe = (struct ocfs2_dinode *)bh->b_data;
888 881
889 /* The journal bh on the osb always comes from ocfs2_journal_init() 882 /* The journal bh on the osb always comes from ocfs2_journal_init()
@@ -921,8 +914,6 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
921 struct inode *inode = NULL; 914 struct inode *inode = NULL;
922 int num_running_trans = 0; 915 int num_running_trans = 0;
923 916
924 mlog_entry_void();
925
926 BUG_ON(!osb); 917 BUG_ON(!osb);
927 918
928 journal = osb->journal; 919 journal = osb->journal;
@@ -1024,8 +1015,6 @@ int ocfs2_journal_load(struct ocfs2_journal *journal, int local, int replayed)
1024 int status = 0; 1015 int status = 0;
1025 struct ocfs2_super *osb; 1016 struct ocfs2_super *osb;
1026 1017
1027 mlog_entry_void();
1028
1029 BUG_ON(!journal); 1018 BUG_ON(!journal);
1030 1019
1031 osb = journal->j_osb; 1020 osb = journal->j_osb;
@@ -1070,8 +1059,6 @@ int ocfs2_journal_wipe(struct ocfs2_journal *journal, int full)
1070{ 1059{
1071 int status; 1060 int status;
1072 1061
1073 mlog_entry_void();
1074
1075 BUG_ON(!journal); 1062 BUG_ON(!journal);
1076 1063
1077 status = jbd2_journal_wipe(journal->j_journal, full); 1064 status = jbd2_journal_wipe(journal->j_journal, full);
@@ -1124,8 +1111,6 @@ static int ocfs2_force_read_journal(struct inode *inode)
1124#define CONCURRENT_JOURNAL_FILL 32ULL 1111#define CONCURRENT_JOURNAL_FILL 32ULL
1125 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL]; 1112 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL];
1126 1113
1127 mlog_entry_void();
1128
1129 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); 1114 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL);
1130 1115
1131 num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size); 1116 num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size);
@@ -1194,8 +1179,6 @@ void ocfs2_complete_recovery(struct work_struct *work)
1194 struct ocfs2_quota_recovery *qrec; 1179 struct ocfs2_quota_recovery *qrec;
1195 LIST_HEAD(tmp_la_list); 1180 LIST_HEAD(tmp_la_list);
1196 1181
1197 mlog_entry_void();
1198
1199 mlog(0, "completing recovery from keventd\n"); 1182 mlog(0, "completing recovery from keventd\n");
1200 1183
1201 spin_lock(&journal->j_lock); 1184 spin_lock(&journal->j_lock);
@@ -1339,8 +1322,6 @@ static int __ocfs2_recovery_thread(void *arg)
1339 int rm_quota_used = 0, i; 1322 int rm_quota_used = 0, i;
1340 struct ocfs2_quota_recovery *qrec; 1323 struct ocfs2_quota_recovery *qrec;
1341 1324
1342 mlog_entry_void();
1343
1344 status = ocfs2_wait_on_mount(osb); 1325 status = ocfs2_wait_on_mount(osb);
1345 if (status < 0) { 1326 if (status < 0) {
1346 goto bail; 1327 goto bail;
@@ -1461,8 +1442,8 @@ bail:
1461 1442
1462void ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num) 1443void ocfs2_recovery_thread(struct ocfs2_super *osb, int node_num)
1463{ 1444{
1464 mlog_entry("(node_num=%d, osb->node_num = %d)\n", 1445 mlog(0, "(node_num=%d, osb->node_num = %d)\n",
1465 node_num, osb->node_num); 1446 node_num, osb->node_num);
1466 1447
1467 mutex_lock(&osb->recovery_lock); 1448 mutex_lock(&osb->recovery_lock);
1468 if (osb->disable_recovery) 1449 if (osb->disable_recovery)
@@ -1688,8 +1669,8 @@ static int ocfs2_recover_node(struct ocfs2_super *osb,
1688 struct ocfs2_dinode *la_copy = NULL; 1669 struct ocfs2_dinode *la_copy = NULL;
1689 struct ocfs2_dinode *tl_copy = NULL; 1670 struct ocfs2_dinode *tl_copy = NULL;
1690 1671
1691 mlog_entry("(node_num=%d, slot_num=%d, osb->node_num = %d)\n", 1672 mlog(0, "(node_num=%d, slot_num=%d, osb->node_num = %d)\n",
1692 node_num, slot_num, osb->node_num); 1673 node_num, slot_num, osb->node_num);
1693 1674
1694 /* Should not ever be called to recover ourselves -- in that 1675 /* Should not ever be called to recover ourselves -- in that
1695 * case we should've called ocfs2_journal_load instead. */ 1676 * case we should've called ocfs2_journal_load instead. */