diff options
author | David Sterba <dsterba@suse.com> | 2017-05-31 17:21:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:02 +0200 |
commit | 389a6cfc2afb833e65b93ad6d8220ad1a84538a2 (patch) | |
tree | 14065dc73f5eaf3463c32b3c8d0b465e3187c107 /fs/btrfs/lzo.c | |
parent | fe30853307559c3ec237391507c2b395095aa151 (diff) | |
download | linux-389a6cfc2afb833e65b93ad6d8220ad1a84538a2.tar.bz2 |
btrfs: switch kmallocs to GFP_KERNEL in lzo/zlib alloc_workspace
As alloc_workspace is now protected by memalloc_nofs where needed,
we can switch the kmalloc to use GFP_KERNEL.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lzo.c')
-rw-r--r-- | fs/btrfs/lzo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c index 7e8b0d6a7961..5ffee3986e1a 100644 --- a/fs/btrfs/lzo.c +++ b/fs/btrfs/lzo.c @@ -51,7 +51,7 @@ static struct list_head *lzo_alloc_workspace(void) { struct workspace *workspace; - workspace = kzalloc(sizeof(*workspace), GFP_NOFS); + workspace = kzalloc(sizeof(*workspace), GFP_KERNEL); if (!workspace) return ERR_PTR(-ENOMEM); |