diff options
author | 2017-02-13 12:41:02 +0100 | |
---|---|---|
committer | 2017-02-17 12:03:49 +0100 | |
commit | 6602caf149cc7698fc94160803c598ae708d686c (patch) | |
tree | 23c36c14a37f94902305279ca4acdc748e28bf69 /fs | |
parent | btrfs: use GFP_KERNEL in btrfs_quota_enable (diff) | |
download | linux-6602caf149cc7698fc94160803c598ae708d686c.tar.gz linux-6602caf149cc7698fc94160803c598ae708d686c.tar.bz2 linux-6602caf149cc7698fc94160803c598ae708d686c.zip |
btrfs: use GFP_KERNEL in btrfs_add/del_qgroup_relation
Qgroup relations are added/deleted from ioctl, we hold the high level
qgroup lock, no deadlocks or recursion from the allocation possible
here.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/qgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 4759fd46cfb5..d97353440a70 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -1174,7 +1174,7 @@ int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, if (btrfs_qgroup_level(src) >= btrfs_qgroup_level(dst)) return -EINVAL; - tmp = ulist_alloc(GFP_NOFS); + tmp = ulist_alloc(GFP_KERNEL); if (!tmp) return -ENOMEM; @@ -1234,7 +1234,7 @@ int __del_qgroup_relation(struct btrfs_trans_handle *trans, int ret = 0; int err; - tmp = ulist_alloc(GFP_NOFS); + tmp = ulist_alloc(GFP_KERNEL); if (!tmp) return -ENOMEM; |