]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: use GFP_KERNEL in pure transaction contexts
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Apr 2024 17:00:51 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:35 +0000 (11:37 -0700)
commita6cb3f6695cccb4d3863884ed836571bcded5b9d
treeaf06b22b64dff86e1bc15a2202d5b03dabc7c7b4
parentc3bf5a1f3f8a42dd5d3c2f640dd4d0d1e44bb592
xfs: use GFP_KERNEL in pure transaction contexts

Source kernel commit: 0b3a76e955ebe3d71a2bcd5990404ed522b40e17

When running in a transaction context, memory allocations are scoped
to GFP_NOFS. Hence we don't need to use GFP_NOFS contexts in pure
transaction context allocations - GFP_KERNEL will automatically get
converted to GFP_NOFS as appropriate.

Go through the code and convert all the obvious GFP_NOFS allocations
in transaction context to use GFP_KERNEL. This further reduces the
explicit use of GFP_NOFS in XFS.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_attr.c
libxfs/xfs_bmap.c
libxfs/xfs_defer.c
libxfs/xfs_dir2.c
libxfs/xfs_inode_fork.c
libxfs/xfs_refcount.c
libxfs/xfs_rmap.c