public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] btrfs: remove ASSERT()s for folio_order() and folio_test_large()
@ 2025-03-15  0:42 Qu Wenruo
  2025-03-15  0:42 ` [PATCH v2 1/7] btrfs: send: remove the again label inside put_file_data() Qu Wenruo
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Qu Wenruo @ 2025-03-15  0:42 UTC (permalink / raw)
  To: linux-btrfs

[CHANGELOG]
v2:
- Update the commit message for the first patch

There are quite some ASSERT()s checking folio_order() or
folio_test_large() on data folios.

They are the blockage for the incoming larger data folios.

This series will remove most of them, with the following exceptions
remaining:

- wait_dev_supers() and write_dev_supers()
  They are folios from block device cache, will not be affected by our
  larger data folios support.

- relocation_one_folio()
  It's about data relocation inode, and we can disable larger data folios
  for such special inode easily.

- btrfs_attach_subpage()
  The folio_test_large() is only for metadata, just change it to be a
  metadata specific check.

- defrage_prepare_one_folio()
  It rejects larger folios gracefully so no need to handle it yet.
  Although we still need some extra work to make defrag to properly
  support larger folios.

- btrfs_end_repair_bio()
  This will be covered by a dedicated series converting the bio layer to
  use folio interfaces other than bvec interfaces.
  Until then the ASSERT() will stay.

The first patch is just a small cleanup for send, exposed during the
removal of ASSERT()s.


Qu Wenruo (7):
  btrfs: send: remove the again label inside put_file_data()
  btrfs: send: prepare put_file_data() for larger data folios
  btrfs: prepare btrfs_page_mkwrite() for larger data folios
  btrfs: prepare prepare_one_folio() for larger data folios
  btrfs: prepare end_bbio_data_write() for larger data folios
  btrfs: subpage: prepare for larger data folios
  btrfs: zlib: prepare copy_data_into_buffer() for larger data folios

 fs/btrfs/extent_io.c |  3 ---
 fs/btrfs/file.c      |  6 +-----
 fs/btrfs/send.c      | 29 +++++++++++++----------------
 fs/btrfs/subpage.c   |  6 ++----
 fs/btrfs/zlib.c      |  2 --
 5 files changed, 16 insertions(+), 30 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-03-15  0:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-15  0:42 [PATCH v2 0/7] btrfs: remove ASSERT()s for folio_order() and folio_test_large() Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 1/7] btrfs: send: remove the again label inside put_file_data() Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 2/7] btrfs: send: prepare put_file_data() for larger data folios Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 3/7] btrfs: prepare btrfs_page_mkwrite() " Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 4/7] btrfs: prepare prepare_one_folio() " Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 5/7] btrfs: prepare end_bbio_data_write() " Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 6/7] btrfs: subpage: prepare " Qu Wenruo
2025-03-15  0:42 ` [PATCH v2 7/7] btrfs: zlib: prepare copy_data_into_buffer() " Qu Wenruo

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