]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Feb 2026 22:41:11 +0000 (14:41 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:39:56 +0000 (21:39 +0200)
commite89513b094c0abb790ed6d735249900a0b269219
tree511bbfa4fbc2e28006ae512c35a152eab9fbb709
parent7c7f99c57a13c49b13ff9fbdd922e4a6aa48bfc1
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument

Source kernel commit: bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43

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>
libxfs/xfs_ag.c
libxfs/xfs_rtgroup.c