This, on top of a number of patches currently in next and a few patches sent to the mailing lists earlier today, converts most of ext4 to use folios instead of pages. It does not add support for large folios. It does not convert mballoc to use folios. write_begin() and write_end() still take a page parameter instead of a folio. It does convert a lot of code away from the page APIs that we're trying to remove. It does remove a lot of calls to compound_head(). I'd like to see it land in 6.4, so getting it in for review early. Matthew Wilcox (Oracle) (31): fs: Add FGP_WRITEBEGIN fscrypt: Add some folio helper functions ext4: Convert ext4_bio_write_page() to use a folio ext4: Convert ext4_finish_bio() to use folios ext4: Convert ext4_writepage() to use a folio ext4: Turn mpage_process_page() into mpage_process_folio() ext4: Convert mpage_submit_page() to mpage_submit_folio() ext4: Convert ext4_bio_write_page() to ext4_bio_write_folio() ext4: Convert ext4_readpage_inline() to take a folio ext4: Convert ext4_convert_inline_data_to_extent() to use a folio ext4: Convert ext4_try_to_write_inline_data() to use a folio ext4: Convert ext4_da_convert_inline_data_to_extent() to use a folio ext4: Convert ext4_da_write_inline_data_begin() to use a folio ext4: Convert ext4_read_inline_page() to ext4_read_inline_folio() ext4: Convert ext4_write_inline_data_end() to use a folio ext4: Convert ext4_write_begin() to use a folio ext4: Convert ext4_write_end() to use a folio ext4: Use a folio in ext4_journalled_write_end() ext4: Convert ext4_journalled_zero_new_buffers() to use a folio ext4: Convert __ext4_block_zero_page_range() to use a folio ext4: Convert __ext4_journalled_writepage() to take a folio ext4: Convert ext4_page_nomap_can_writeout() to take a folio ext4: Use a folio in ext4_da_write_begin() ext4: Convert ext4_mpage_readpages() to work on folios ext4: Convert ext4_block_write_begin() to take a folio ext4: Convert ext4_writepage() to take a folio ext4: Use a folio in ext4_page_mkwrite() ext4: Use a folio iterator in __read_end_io() ext4: Convert mext_page_mkuptodate() to take a folio ext4: Convert pagecache_read() to use a folio ext4: Use a folio in ext4_read_merkle_tree_page fs/ext4/ext4.h | 9 +- fs/ext4/inline.c | 171 ++++++++-------- fs/ext4/inode.c | 394 +++++++++++++++++++------------------ fs/ext4/move_extent.c | 33 ++-- fs/ext4/page-io.c | 98 +++++---- fs/ext4/readpage.c | 72 ++++--- fs/ext4/verity.c | 30 ++- fs/iomap/buffered-io.c | 2 +- fs/netfs/buffered_read.c | 3 +- include/linux/fscrypt.h | 21 ++ include/linux/page-flags.h | 5 - include/linux/pagemap.h | 2 + mm/folio-compat.c | 4 +- 13 files changed, 424 insertions(+), 420 deletions(-) -- 2.35.1