diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-01-14 17:26:43 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 22:20:37 +0100 |
commit | ffcfaf81795471be3c07d6e3143bff31edca5d5a (patch) | |
tree | ddca6ea848dc7212b63fd75a6088d3259307db74 /fs/btrfs | |
parent | Btrfs: flush the dirty pages of the ordered extent aggressively during loggin... (diff) | |
download | linux-ffcfaf81795471be3c07d6e3143bff31edca5d5a.tar.xz linux-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/btrfs')
-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; |