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.c37
1 files changed, 20 insertions, 17 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 4be801f4559b..6a610ae53583 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -377,7 +377,7 @@ int ocfs2_journal_access(struct ocfs2_journal_handle *handle,
377 BUG_ON(!bh); 377 BUG_ON(!bh);
378 BUG_ON(!(handle->flags & OCFS2_HANDLE_STARTED)); 378 BUG_ON(!(handle->flags & OCFS2_HANDLE_STARTED));
379 379
380 mlog_entry("bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %hu\n", 380 mlog_entry("bh->b_blocknr=%llu, type=%d (\"%s\"), bh->b_size = %zu\n",
381 (unsigned long long)bh->b_blocknr, type, 381 (unsigned long long)bh->b_blocknr, type,
382 (type == OCFS2_JOURNAL_ACCESS_CREATE) ? 382 (type == OCFS2_JOURNAL_ACCESS_CREATE) ?
383 "OCFS2_JOURNAL_ACCESS_CREATE" : 383 "OCFS2_JOURNAL_ACCESS_CREATE" :
@@ -503,8 +503,8 @@ static void ocfs2_handle_cleanup_locks(struct ocfs2_journal *journal,
503 ocfs2_meta_unlock(inode, 1); 503 ocfs2_meta_unlock(inode, 1);
504 if (atomic_read(&inode->i_count) == 1) 504 if (atomic_read(&inode->i_count) == 1)
505 mlog(ML_ERROR, 505 mlog(ML_ERROR,
506 "Inode %"MLFu64", I'm doing a last iput for!", 506 "Inode %llu, I'm doing a last iput for!",
507 OCFS2_I(inode)->ip_blkno); 507 (unsigned long long)OCFS2_I(inode)->ip_blkno);
508 iput(inode); 508 iput(inode);
509 kmem_cache_free(ocfs2_lock_cache, lock); 509 kmem_cache_free(ocfs2_lock_cache, lock);
510 } 510 }
@@ -582,7 +582,8 @@ int ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty)
582 } 582 }
583 583
584 mlog(0, "inode->i_size = %lld\n", inode->i_size); 584 mlog(0, "inode->i_size = %lld\n", inode->i_size);
585 mlog(0, "inode->i_blocks = %lu\n", inode->i_blocks); 585 mlog(0, "inode->i_blocks = %llu\n",
586 (unsigned long long)inode->i_blocks);
586 mlog(0, "inode->ip_clusters = %u\n", OCFS2_I(inode)->ip_clusters); 587 mlog(0, "inode->ip_clusters = %u\n", OCFS2_I(inode)->ip_clusters);
587 588
588 /* call the kernels journal init function now */ 589 /* call the kernels journal init function now */
@@ -640,8 +641,9 @@ static int ocfs2_journal_toggle_dirty(struct ocfs2_super *osb,
640 /* This is called from startup/shutdown which will 641 /* This is called from startup/shutdown which will
641 * handle the errors in a specific manner, so no need 642 * handle the errors in a specific manner, so no need
642 * to call ocfs2_error() here. */ 643 * to call ocfs2_error() here. */
643 mlog(ML_ERROR, "Journal dinode %"MLFu64" has invalid " 644 mlog(ML_ERROR, "Journal dinode %llu has invalid "
644 "signature: %.*s", fe->i_blkno, 7, fe->i_signature); 645 "signature: %.*s", (unsigned long long)fe->i_blkno, 7,
646 fe->i_signature);
645 status = -EIO; 647 status = -EIO;
646 goto out; 648 goto out;
647 } 649 }
@@ -849,8 +851,9 @@ static int ocfs2_force_read_journal(struct inode *inode)
849 851
850 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); 852 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL);
851 853
852 mlog(0, "Force reading %lu blocks\n", 854 mlog(0, "Force reading %llu blocks\n",
853 (inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9))); 855 (unsigned long long)(inode->i_blocks >>
856 (inode->i_sb->s_blocksize_bits - 9)));
854 857
855 v_blkno = 0; 858 v_blkno = 0;
856 while (v_blkno < 859 while (v_blkno <
@@ -934,8 +937,8 @@ void ocfs2_complete_recovery(void *data)
934 937
935 la_dinode = item->lri_la_dinode; 938 la_dinode = item->lri_la_dinode;
936 if (la_dinode) { 939 if (la_dinode) {
937 mlog(0, "Clean up local alloc %"MLFu64"\n", 940 mlog(0, "Clean up local alloc %llu\n",
938 la_dinode->i_blkno); 941 (unsigned long long)la_dinode->i_blkno);
939 942
940 ret = ocfs2_complete_local_alloc_recovery(osb, 943 ret = ocfs2_complete_local_alloc_recovery(osb,
941 la_dinode); 944 la_dinode);
@@ -947,8 +950,8 @@ void ocfs2_complete_recovery(void *data)
947 950
948 tl_dinode = item->lri_tl_dinode; 951 tl_dinode = item->lri_tl_dinode;
949 if (tl_dinode) { 952 if (tl_dinode) {
950 mlog(0, "Clean up truncate log %"MLFu64"\n", 953 mlog(0, "Clean up truncate log %llu\n",
951 tl_dinode->i_blkno); 954 (unsigned long long)tl_dinode->i_blkno);
952 955
953 ret = ocfs2_complete_truncate_log_recovery(osb, 956 ret = ocfs2_complete_truncate_log_recovery(osb,
954 tl_dinode); 957 tl_dinode);
@@ -1473,11 +1476,11 @@ static int ocfs2_queue_orphans(struct ocfs2_super *osb,
1473 if (de->file_type > OCFS2_FT_MAX) { 1476 if (de->file_type > OCFS2_FT_MAX) {
1474 mlog(ML_ERROR, 1477 mlog(ML_ERROR,
1475 "block %llu contains invalid de: " 1478 "block %llu contains invalid de: "
1476 "inode = %"MLFu64", rec_len = %u, " 1479 "inode = %llu, rec_len = %u, "
1477 "name_len = %u, file_type = %u, " 1480 "name_len = %u, file_type = %u, "
1478 "name='%.*s'\n", 1481 "name='%.*s'\n",
1479 (unsigned long long)bh->b_blocknr, 1482 (unsigned long long)bh->b_blocknr,
1480 le64_to_cpu(de->inode), 1483 (unsigned long long)le64_to_cpu(de->inode),
1481 le16_to_cpu(de->rec_len), 1484 le16_to_cpu(de->rec_len),
1482 de->name_len, 1485 de->name_len,
1483 de->file_type, 1486 de->file_type,
@@ -1494,8 +1497,8 @@ static int ocfs2_queue_orphans(struct ocfs2_super *osb,
1494 if (IS_ERR(iter)) 1497 if (IS_ERR(iter))
1495 continue; 1498 continue;
1496 1499
1497 mlog(0, "queue orphan %"MLFu64"\n", 1500 mlog(0, "queue orphan %llu\n",
1498 OCFS2_I(iter)->ip_blkno); 1501 (unsigned long long)OCFS2_I(iter)->ip_blkno);
1499 /* No locking is required for the next_orphan 1502 /* No locking is required for the next_orphan
1500 * queue as there is only ever a single 1503 * queue as there is only ever a single
1501 * process doing orphan recovery. */ 1504 * process doing orphan recovery. */
@@ -1588,7 +1591,7 @@ static int ocfs2_recover_orphans(struct ocfs2_super *osb,
1588 1591
1589 while (inode) { 1592 while (inode) {
1590 oi = OCFS2_I(inode); 1593 oi = OCFS2_I(inode);
1591 mlog(0, "iput orphan %"MLFu64"\n", oi->ip_blkno); 1594 mlog(0, "iput orphan %llu\n", (unsigned long long)oi->ip_blkno);
1592 1595
1593 iter = oi->ip_next_orphan; 1596 iter = oi->ip_next_orphan;
1594 1597