Signed-off-by: Chris Mason <chris.mason@oracle.com>
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;
}
return NULL;
}
buf = find_tree_block(root, ins.objectid);
- dirty_tree_block(trans, root, buf);
+ set_buffer_uptodate(buf);
return buf;
}
struct btrfs_trans_handle *trans;
struct btrfs_root *root;
int ret;
+
sb->s_dirt = 0;
+ return 0;
+
root = btrfs_sb(sb);
trans = btrfs_start_transaction(root, 1);
ret = btrfs_commit_transaction(trans, root);