btrfs: introduce btrfs_alloc_folio_array()
authorQu Wenruo <wqu@suse.com>
Mon, 29 Jan 2024 09:46:10 +0000 (20:16 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:02 +0000 (21:31 +0200)
commit11e03f2f4b79eac2176d8ae5120bc9857e7fbb29
tree9369a8bf1879651f8a1a56f2145e6c66455a0b78
parentae0d22a7fcb63863742c58be11b9e75ce2cbc9f5
btrfs: introduce btrfs_alloc_folio_array()

The new helper will do the same thing as btrfs_alloc_page_array(), but
with folios.

One extra difference is, there is no extra helper for bulk allocation,
thus it may not be as efficient as the page version.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h