aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2014-01-14 11:26:43 -0500
committerChris Mason <clm@fb.com>2014-01-28 16:20:37 -0500
commitffcfaf81795471be3c07d6e3143bff31edca5d5a (patch)
treeddca6ea848dc7212b63fd75a6088d3259307db74 /fs
parent23c671a58831a5aaca3b56b915c8394a274a96df (diff)
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 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)
2095 char *name = NULL; 2095 char *name = NULL;
2096 int namelen; 2096 int namelen;
2097 2097
2098 path = alloc_path_for_send(); 2098 path = btrfs_alloc_path();
2099 if (!path) 2099 if (!path)
2100 return -ENOMEM; 2100 return -ENOMEM;
2101 2101