diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 8e1dcda0839c..2f1eb4ae4e1d 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -10,8 +10,13 @@ static int check_tree_block(struct btrfs_root *root, struct buffer_head *buf) | |||
10 | if (buf->b_blocknr != btrfs_header_blocknr(&node->header)) | 10 | if (buf->b_blocknr != btrfs_header_blocknr(&node->header)) |
11 | BUG(); | 11 | BUG(); |
12 | if (root->node && btrfs_header_parentid(&node->header) != | 12 | if (root->node && btrfs_header_parentid(&node->header) != |
13 | btrfs_header_parentid(btrfs_buffer_header(root->node))) | 13 | btrfs_header_parentid(btrfs_buffer_header(root->node))) { |
14 | BUG(); | 14 | printk("block %Lu parentids don't match buf %Lu, root %Lu\n", |
15 | buf->b_blocknr, | ||
16 | btrfs_header_parentid(&node->header), | ||
17 | btrfs_header_parentid(btrfs_buffer_header(root->node))); | ||
18 | WARN_ON(1); | ||
19 | } | ||
15 | return 0; | 20 | return 0; |
16 | } | 21 | } |
17 | 22 | ||