summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-18 18:42:13 +0100
committerDavid Sterba <dsterba@suse.com>2016-02-11 15:19:39 +0100
commite780b0d1c1523ec8cd489c6910fb8c5ee452bb6c (patch)
tree17ea7efb28155906024692a66b6202afd458e501 /fs/btrfs/ctree.c
parentLinux 4.5-rc3 (diff)
downloadlinux-e780b0d1c1523ec8cd489c6910fb8c5ee452bb6c.tar.xz
linux-e780b0d1c1523ec8cd489c6910fb8c5ee452bb6c.zip
btrfs: send: use GFP_KERNEL everywhere
The send operation is not on the critical writeback path we don't need to use GFP_NOFS for allocations. All error paths are handled and the whole operation is restartable. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 769e0ff1b4ce..00741eb94651 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -5361,7 +5361,7 @@ int btrfs_compare_trees(struct btrfs_root *left_root,
goto out;
}
- tmp_buf = kmalloc(left_root->nodesize, GFP_NOFS);
+ tmp_buf = kmalloc(left_root->nodesize, GFP_KERNEL);
if (!tmp_buf) {
ret = -ENOMEM;
goto out;