All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs: do not use extent commit root for sending
@ 2014-01-12 13:38 Wang Shilong
  2014-01-12 13:38 ` [PATCH 1/3] Btrfs: fix missing skinny metadata check in scrub_stripe() Wang Shilong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wang Shilong @ 2014-01-12 13:38 UTC (permalink / raw)
  To: linux-btrfs

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 --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)
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-13  1:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-12 13:38 [PATCH] Btrfs: do not use extent commit root for sending Wang Shilong
2014-01-12 13:38 ` [PATCH 1/3] Btrfs: fix missing skinny metadata check in scrub_stripe() Wang Shilong
2014-01-12 13:38 ` [PATCH 2/3] Btrfs: fix to search previous metadata extent item since skinny metadata Wang Shilong
2014-01-12 13:38 ` [PATCH 3/3] Btrfs: fix missing inline refs when walking backrefs Wang Shilong
2014-01-12 15:36   ` Filipe David Manana
2014-01-13  1:27     ` Wang Shilong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.