summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2014-01-15 00:26:43 +0800
committerChris Mason <clm@fb.com>2014-01-28 13:20:37 -0800
commitffcfaf81795471be3c07d6e3143bff31edca5d5a (patch)
treeddca6ea848dc7212b63fd75a6088d3259307db74 /fs
parent23c671a58831a5aaca3b56b915c8394a274a96df (diff)
downloadop-kernel-dev-ffcfaf81795471be3c07d6e3143bff31edca5d5a.zip
op-kernel-dev-ffcfaf81795471be3c07d6e3143bff31edca5d5a.tar.gz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 84aed2f..aa60cbe 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;
OpenPOWER on IntegriCloud