Btrfs: fix wrong search path initialization before searching tree root
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Tue, 14 Jan 2014 16:26:43 +0000 (00:26 +0800)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:37 +0000 (13:20 -0800)
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>
fs/btrfs/send.c

index 84aed2f30aa272efda7434ff24f1ffeac890429c..aa60cbe7066ca8f3b720cca8e25aec6e0e046c8f 100644 (file)
@@ -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;