summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-13 11:03:44 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-17 12:03:49 +0100
commit52bf8e7aeabb3d16abe2c30df60a0919bfaaaef4 (patch)
treeff804939eb58a226b5bd23f95f675e87d1dd7519 /fs/btrfs/qgroup.c
parent323b88f4ab668d957a75befcb1079ae9a6e9e4d1 (diff)
downloadtalos-obmc-linux-52bf8e7aeabb3d16abe2c30df60a0919bfaaaef4.tar.gz
talos-obmc-linux-52bf8e7aeabb3d16abe2c30df60a0919bfaaaef4.zip
btrfs: use GFP_KERNEL in btrfs_quota_enable
We don't need to use GFP_NOFS here as this is called from ioctls an the only lock held is the subvol_sem, which is of a high level and protects creation/renames/deletion and is never held in the writeout paths. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index cdd0a16bf469..4759fd46cfb5 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -876,7 +876,7 @@ int btrfs_quota_enable(struct btrfs_trans_handle *trans,
goto out;
}
- fs_info->qgroup_ulist = ulist_alloc(GFP_NOFS);
+ fs_info->qgroup_ulist = ulist_alloc(GFP_KERNEL);
if (!fs_info->qgroup_ulist) {
ret = -ENOMEM;
goto out;
OpenPOWER on IntegriCloud