forked from luck/tmp_suning_uos_patched
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:
parent
23c671a588
commit
ffcfaf8179
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user