summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.com>2024-08-29 15:06:40 +0200
committerChristian Brauner <brauner@kernel.org>2024-08-30 14:54:03 +0200
commit5c40e050e6ac0218af7c520095729d440cc87e6b (patch)
tree7ddafbc8fd9c49edb9e24dc16916c569a8dab4cf /fs
parentwriteback: Refine the show_inode_state() macro definition (diff)
downloadlinux-5c40e050e6ac0218af7c520095729d440cc87e6b.tar.xz
linux-5c40e050e6ac0218af7c520095729d440cc87e6b.zip
fs: drop GFP_NOFAIL mode from alloc_page_buffers
There is only one called of alloc_page_buffers and it doesn't require __GFP_NOFAIL so drop this allocation mode. Signed-off-by: Michal Hocko <mhocko@suse.com> Link: https://lore.kernel.org/r/20240829130640.1397970-1-mhocko@kernel.org Acked-by: Song Liu <song@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/buffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 31a9062cad7e..74f4eb5c7087 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -957,12 +957,9 @@ no_grow:
}
EXPORT_SYMBOL_GPL(folio_alloc_buffers);
-struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
- bool retry)
+struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size)
{
gfp_t gfp = GFP_NOFS | __GFP_ACCOUNT;
- if (retry)
- gfp |= __GFP_NOFAIL;
return folio_alloc_buffers(page_folio(page), size, gfp);
}