aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 96bf3ef3a798..878101172546 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -20,8 +20,9 @@ static int check_tree_block(struct btrfs_root *root, struct buffer_head *buf)
20{ 20{
21 struct btrfs_node *node = btrfs_buffer_node(buf); 21 struct btrfs_node *node = btrfs_buffer_node(buf);
22 if (bh_blocknr(buf) != btrfs_header_blocknr(&node->header)) { 22 if (bh_blocknr(buf) != btrfs_header_blocknr(&node->header)) {
23 printk(KERN_CRIT "bh_blocknr(buf) is %Lu, header is %Lu\n", 23 printk(KERN_CRIT "bh_blocknr(buf) is %llu, header is %llu\n",
24 bh_blocknr(buf), btrfs_header_blocknr(&node->header)); 24 (unsigned long long)bh_blocknr(buf),
25 (unsigned long long)btrfs_header_blocknr(&node->header));
25 return 1; 26 return 1;
26 } 27 }
27 return 0; 28 return 0;
@@ -157,8 +158,9 @@ static int csum_tree_block(struct btrfs_root *root, struct buffer_head *bh,
157 return ret; 158 return ret;
158 if (verify) { 159 if (verify) {
159 if (memcmp(bh->b_data, result, BTRFS_CRC32_SIZE)) { 160 if (memcmp(bh->b_data, result, BTRFS_CRC32_SIZE)) {
160 printk("checksum verify failed on %Lu\n", 161 printk("btrfs: %s checksum verify failed on %llu\n",
161 bh_blocknr(bh)); 162 root->fs_info->sb->s_id,
163 (unsigned long long)bh_blocknr(bh));
162 return 1; 164 return 1;
163 } 165 }
164 } else { 166 } else {