summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-23 11:00:45 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-23 11:00:45 -0400
commitdf2ce34c8801af8e00c7f82435fcb1e4b45a2759 (patch)
tree6231bb66994c54a18fe10ca26dfbe35e93e58721 /fs/btrfs/disk-io.c
parentd571976292839cec05a2820b08f7629b145ed157 (diff)
downloadlwn-df2ce34c8801af8e00c7f82435fcb1e4b45a2759.tar.gz
lwn-df2ce34c8801af8e00c7f82435fcb1e4b45a2759.zip
Btrfs: properly set new buffers for new blocks up to date
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c9
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)
if (buf->b_blocknr != btrfs_header_blocknr(&node->header))
BUG();
if (root->node && btrfs_header_parentid(&node->header) !=
- btrfs_header_parentid(btrfs_buffer_header(root->node)))
- BUG();
+ btrfs_header_parentid(btrfs_buffer_header(root->node))) {
+ printk("block %Lu parentids don't match buf %Lu, root %Lu\n",
+ buf->b_blocknr,
+ btrfs_header_parentid(&node->header),
+ btrfs_header_parentid(btrfs_buffer_header(root->node)));
+ WARN_ON(1);
+ }
return 0;
}