Btrfs: fix wrong search path initialization before searching tree root

To search tree root without transaction protection, we should neither search commit
root nor skip locking here, fix it.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Wang Shilong 2014-01-15 00:26:43 +08:00 committed by Chris Mason
parent 23c671a588
commit ffcfaf8179

View File

@ -2095,7 +2095,7 @@ static int send_subvol_begin(struct send_ctx *sctx)
char *name = NULL;
int namelen;
path = alloc_path_for_send();
path = btrfs_alloc_path();
if (!path)
return -ENOMEM;