Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: cleanup on the extra_gfp parameters
@ 2024-06-27  4:31 Qu Wenruo
  2024-06-27  4:31 ` [PATCH 1/2] btrfs: remove the extra_gfp parameter from btrfs_alloc_folio_array() Qu Wenruo
  2024-06-27  4:32 ` [PATCH 2/2] btrfs: remove the extra_gfp parameter from btrfs_alloc_page_array() Qu Wenruo
  0 siblings, 2 replies; 8+ messages in thread
From: Qu Wenruo @ 2024-06-27  4:31 UTC (permalink / raw)
  To: linux-btrfs

The @extra_gfp parameters for page/folio array allocation is only for
extent buffer allocation to pass __GFP_NOFAIL.

Meanwhile all the callers have to pay for the extra parameter.

This patchset removes the parameter, and introduce an internal version
of btrfs_alloc_page_array() to handle the __GFP_NOFAIL case.
Furthermore, for that internal version, use a bool to indicate wheter
it's a NOFAIL allocation or not.

Qu Wenruo (2):
  btrfs: remove the extra_gfp parameter from btrfs_alloc_folio_array()
  btrfs: remove the extra_gfp parameter from btrfs_alloc_page_array()

 fs/btrfs/compression.c |  2 +-
 fs/btrfs/extent_io.c   | 51 +++++++++++++++++++++---------------------
 fs/btrfs/extent_io.h   |  6 ++---
 fs/btrfs/inode.c       |  2 +-
 fs/btrfs/raid56.c      |  6 ++---
 fs/btrfs/scrub.c       |  2 +-
 6 files changed, 34 insertions(+), 35 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-27 10:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27  4:31 [PATCH 0/2] btrfs: cleanup on the extra_gfp parameters Qu Wenruo
2024-06-27  4:31 ` [PATCH 1/2] btrfs: remove the extra_gfp parameter from btrfs_alloc_folio_array() Qu Wenruo
2024-06-27  8:51   ` Filipe Manana
2024-06-27  4:32 ` [PATCH 2/2] btrfs: remove the extra_gfp parameter from btrfs_alloc_page_array() Qu Wenruo
2024-06-27  8:50   ` Filipe Manana
2024-06-27 10:15     ` Qu Wenruo
2024-06-27 10:38       ` Filipe Manana
2024-06-27 10:40         ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox