From: Wang Shilong Date: Tue, 14 Jan 2014 16:26:43 +0000 (+0800) Subject: Btrfs: fix wrong search path initialization before searching tree root X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ffcfaf81795471be3c07d6e3143bff31edca5d5a;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 84aed2f30aa2..aa60cbe7066c 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -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;