mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Btrfs: properly set new buffers for new blocks up to date
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
d571976292
commit
df2ce34c88
3 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue