projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
323b88f
)
btrfs: use GFP_KERNEL in btrfs_quota_enable
author
David Sterba
<dsterba@suse.com>
Mon, 13 Feb 2017 10:03:44 +0000
(11:03 +0100)
committer
David Sterba
<dsterba@suse.com>
Fri, 17 Feb 2017 11:03:49 +0000
(12:03 +0100)
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>
fs/btrfs/qgroup.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/qgroup.c
b/fs/btrfs/qgroup.c
index
cdd0a16
..
4759fd4
100644
(file)
--- 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;