summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 16:37:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commitbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (patch)
tree01fdd9d27f1b272bef0127966e08eac44d134d0a /fs/gfs2
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
This was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/' to convert the new alloc_obj() users that had a simple GFP_KERNEL argument to just drop that argument. Note that due to the extreme simplicity of the scripting, any slightly more complex cases spread over multiple lines would not be triggered: they definitely exist, but this covers the vast bulk of the cases, and the resulting diff is also then easier to check automatically. For the same reason the 'flex' versions will be done as a separate conversion. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/ops_fstype.c6
-rw-r--r--fs/gfs2/quota.c2
-rw-r--r--fs/gfs2/super.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index f3f649fc5cb1..9b9e70f14d25 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -76,7 +76,7 @@ static struct gfs2_sbd *init_sbd(struct super_block *sb)
{
struct gfs2_sbd *sdp;
- sdp = kzalloc_obj(struct gfs2_sbd, GFP_KERNEL);
+ sdp = kzalloc_obj(struct gfs2_sbd);
if (!sdp)
return NULL;
@@ -562,7 +562,7 @@ static int gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh)
break;
error = -ENOMEM;
- jd = kzalloc_obj(struct gfs2_jdesc, GFP_KERNEL);
+ jd = kzalloc_obj(struct gfs2_jdesc);
if (!jd)
break;
@@ -1637,7 +1637,7 @@ static int gfs2_init_fs_context(struct fs_context *fc)
{
struct gfs2_args *args;
- args = kmalloc_obj(*args, GFP_KERNEL);
+ args = kmalloc_obj(*args);
if (args == NULL)
return -ENOMEM;
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index af3dfeed62fe..5290865f27f1 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1318,7 +1318,7 @@ int gfs2_quota_sync(struct super_block *sb, int type)
if (sb_rdonly(sdp->sd_vfs))
return 0;
- qda = kzalloc_objs(struct gfs2_quota_data *, max_qd, GFP_KERNEL);
+ qda = kzalloc_objs(struct gfs2_quota_data *, max_qd);
if (!qda)
return -ENOMEM;
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 9a655588c0c5..bc191b55b18e 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -336,7 +336,7 @@ static int gfs2_lock_fs_check_clean(struct gfs2_sbd *sdp)
*/
list_for_each_entry(jd, &sdp->sd_jindex_list, jd_list) {
- lfcc = kmalloc_obj(struct lfcc, GFP_KERNEL);
+ lfcc = kmalloc_obj(struct lfcc);
if (!lfcc) {
error = -ENOMEM;
goto out;
@@ -860,7 +860,7 @@ static int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host
int error = 0, err;
memset(sc, 0, sizeof(struct gfs2_statfs_change_host));
- gha = kmalloc_objs(struct gfs2_holder, slots, GFP_KERNEL);
+ gha = kmalloc_objs(struct gfs2_holder, slots);
if (!gha)
return -ENOMEM;
for (x = 0; x < slots; x++)