diff options
author | David Sterba <dsterba@suse.com> | 2016-01-18 17:42:13 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 14:19:39 (GMT) |
commit | e780b0d1c1523ec8cd489c6910fb8c5ee452bb6c (patch) | |
tree | 17ea7efb28155906024692a66b6202afd458e501 /fs/btrfs/ctree.c | |
parent | 388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95 (diff) | |
download | linux-e780b0d1c1523ec8cd489c6910fb8c5ee452bb6c.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 769e0ff..00741eb 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; |