mbox series

[0/2] btrfs: cleanup on the extra_gfp parameters

Message ID cover.1719462554.git.wqu@suse.com (mailing list archive)
Headers show
Series btrfs: cleanup on the extra_gfp parameters | expand

Message

Qu Wenruo June 27, 2024, 4:31 a.m. UTC
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(-)