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-Tag: v3.14-rc1~29^2~25 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ffcfaf81795471be3c07d6e3143bff31edca5d5a;p=uclinux-h8%2Flinux.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;