diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-01-15 00:26:43 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 13:20:37 -0800 |
commit | ffcfaf81795471be3c07d6e3143bff31edca5d5a (patch) | |
tree | ddca6ea848dc7212b63fd75a6088d3259307db74 /fs | |
parent | 23c671a58831a5aaca3b56b915c8394a274a96df (diff) | |
download | linux-stable-ffcfaf81795471be3c07d6e3143bff31edca5d5a.tar.gz linux-stable-ffcfaf81795471be3c07d6e3143bff31edca5d5a.tar.bz2 linux-stable-ffcfaf81795471be3c07d6e3143bff31edca5d5a.zip |
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.c | 2 |
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) char *name = NULL; int namelen; - path = alloc_path_for_send(); + path = btrfs_alloc_path(); if (!path) return -ENOMEM; |