diff mbox

Btrfs: do not use extent commit root for sending

Message ID 1389533914-2272-1-git-send-email-wangshilong1991@gmail.com (mailing list archive)
State Rejected
Headers show

Commit Message

Wang Shilong Jan. 12, 2014, 1:38 p.m. UTC
From: Wang Shilong <wangsl.fnst@cn.fujitsu.com>

Now we have kicked off transaction from btrfs send, it is not safe
that we use extent commit root to search.

I happended to catch this problem when running sending and snapshot
in my desktop.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
---
 fs/btrfs/send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 591063d..e159df1 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -1225,7 +1225,7 @@  static int find_extent_clone(struct send_ctx *sctx,
 
 	extent_item_pos = logical - found_key.objectid;
 	ret = iterate_extent_inodes(sctx->send_root->fs_info,
-					found_key.objectid, extent_item_pos, 1,
+					found_key.objectid, extent_item_pos, 0,
 					__iterate_backrefs, backref_ctx);
 
 	if (ret < 0)