From 389a6cfc2afb833e65b93ad6d8220ad1a84538a2 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 31 May 2017 17:21:15 +0200 Subject: 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 Signed-off-by: David Sterba --- fs/btrfs/lzo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/btrfs/lzo.c') 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); -- cgit v1.2.3-58-ga151