diff options
author | 2024-01-16 09:59:49 +1100 | |
---|---|---|
committer | 2024-02-13 18:07:35 +0530 | |
commit | 204fae32d5f7b9ac673d3d4f636dcef8697db2f0 (patch) | |
tree | fdf6910a8e1295bc7822ebd100294c4640dee200 /fs/xfs/xfs_buf.c | |
parent | xfs: place the CIL under nofs allocation context (diff) | |
download | wireguard-linux-204fae32d5f7b9ac673d3d4f636dcef8697db2f0.tar.xz wireguard-linux-204fae32d5f7b9ac673d3d4f636dcef8697db2f0.zip |
xfs: clean up remaining GFP_NOFS users
These few remaining GFP_NOFS callers do not need to use GFP_NOFS at
all. They are only called from a non-transactional context or cannot
be accessed from memory reclaim due to other constraints. Hence they
can just use GFP_KERNEL.
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>
Diffstat (limited to '')
-rw-r--r-- | fs/xfs/xfs_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index ab7546a9dfd7..fb80cae0b2e5 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -2008,7 +2008,7 @@ xfs_alloc_buftarg( #if defined(CONFIG_FS_DAX) && defined(CONFIG_MEMORY_FAILURE) ops = &xfs_dax_holder_operations; #endif - btp = kzalloc(sizeof(*btp), GFP_NOFS | __GFP_NOFAIL); + btp = kzalloc(sizeof(*btp), GFP_KERNEL | __GFP_NOFAIL); btp->bt_mount = mp; btp->bt_bdev_handle = bdev_handle; |