Displaying 1 result from an estimated 1 matches for "__recow_root".
2013 Nov 27
0
[PATCH] Btrfs-progs: fix the mismatch of extent buffer's space
...er(struct extent_io_tree *tree,
eb->start = bytenr;
eb->len = blocksize;
- eb->refs = 2;
+ eb->refs = 1;
eb->flags = 0;
eb->tree = tree;
eb->fd = -1;
diff --git a/mkfs.c b/mkfs.c
index cd0af9e..482e4df 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -163,6 +163,7 @@ static void __recow_root(struct btrfs_trans_handle *trans,
struct extent_buffer *tmp;
if (trans->transid != btrfs_root_generation(&root->root_item)) {
+ extent_buffer_get(root->node);
ret = __btrfs_cow_block(trans, root, root->node,
NULL, 0, &tmp, 0, 0);
BUG_ON(ret);
--
1.8.2.1
--
T...