summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-12-01 18:04:30 +0100
committerDavid Sterba <dsterba@suse.com>2015-12-03 15:03:43 +0100
commit61dd5ae65be6dfaeadb0e841ea6639351f0e04ce (patch)
tree78de68714e530eb4beb3c68adaf5f312ceed1a0c /fs/btrfs/async-thread.c
parent8d2db7855e7b65c9eecc8789fc54d818ee281ac6 (diff)
downloadlinux-61dd5ae65be6dfaeadb0e841ea6639351f0e04ce.tar.gz
linux-61dd5ae65be6dfaeadb0e841ea6639351f0e04ce.tar.bz2
linux-61dd5ae65be6dfaeadb0e841ea6639351f0e04ce.zip
btrfs: use GFP_KERNEL for allocations of workqueues
We don't have to use GFP_NOFS to allocate workqueue structures, this is done from mount context or potentially scrub start context, safe to fail in both cases. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r--fs/btrfs/async-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 3e36e4adc4a3..88d9af3d4581 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -97,7 +97,7 @@ static struct __btrfs_workqueue *
__btrfs_alloc_workqueue(const char *name, unsigned int flags, int limit_active,
int thresh)
{
- struct __btrfs_workqueue *ret = kzalloc(sizeof(*ret), GFP_NOFS);
+ struct __btrfs_workqueue *ret = kzalloc(sizeof(*ret), GFP_KERNEL);
if (!ret)
return NULL;
@@ -148,7 +148,7 @@ struct btrfs_workqueue *btrfs_alloc_workqueue(const char *name,
int limit_active,
int thresh)
{
- struct btrfs_workqueue *ret = kzalloc(sizeof(*ret), GFP_NOFS);
+ struct btrfs_workqueue *ret = kzalloc(sizeof(*ret), GFP_KERNEL);
if (!ret)
return NULL;