All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] btrfs: separate/simplify/unify subpage handling
@ 2025-01-29  7:37 Qu Wenruo
  2025-01-29  7:37 ` [PATCH 1/8] btrfs: remove btrfs_fs_info::sectors_per_page Qu Wenruo
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Qu Wenruo @ 2025-01-29  7:37 UTC (permalink / raw)
  To: linux-btrfs

[METADATA SUBPAGE CHECKS]
Currently we only have one btrfs_is_subpage() check, utilized by data
and metadata.

But the truth is, btrfs_is_subpage() can return incorrect result if the
target folio belongs to a dummy extent buffer.

This means we have quite some metadata call sites doing their own
metadata specific subpage check.

[SUBPAGE SPECIFIC HANDLINGS]
There are several functions that split the metadata subpage handling
into a dedicated path.

But the truth is, a lot of such paths only have minor differences
compared to the regular routine.

[THIS SERIES]
This series address the above problems and prepare for the incoming data
larger folio support by:

- Remove btrfs_fs_info::sectors_per_page
  This is mostly a preparation for the future data larger folio support.

- Introduce a dedicated metadata specific subpage check

- Unify/simplify metadata subpage handling
  So that we have a single unified path for metadata

Qu Wenruo (8):
  btrfs: remove btrfs_fs_info::sectors_per_page
  btrfs: extract metadata subpage detection into a dedicated helper
  btrfs: make subpage attach and detach to handle metadata properly
  btrfs: use metadata specific helpers to simplify extent buffer helpers
  btrfs: simplify btrfs_clear_buffer_dirty()
  btrfs: simplify write_one_eb()
  btrfs: simplify read_extent_buffer_pages_nowait()
  btrfs: require strict data/metadata split for subpage check

 fs/btrfs/disk-io.c   |   5 +-
 fs/btrfs/extent_io.c | 193 +++++++++++++++----------------------------
 fs/btrfs/fs.h        |   7 +-
 fs/btrfs/subpage.c   | 173 ++++++++++++++++++++++----------------
 fs/btrfs/subpage.h   |  50 +++++++++--
 5 files changed, 222 insertions(+), 206 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-02-06  3:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29  7:37 [PATCH 0/8] btrfs: separate/simplify/unify subpage handling Qu Wenruo
2025-01-29  7:37 ` [PATCH 1/8] btrfs: remove btrfs_fs_info::sectors_per_page Qu Wenruo
2025-01-29  7:37 ` [PATCH 2/8] btrfs: extract metadata subpage detection into a dedicated helper Qu Wenruo
2025-01-29  7:37 ` [PATCH 3/8] btrfs: make subpage attach and detach to handle metadata properly Qu Wenruo
2025-01-29  7:37 ` [PATCH 4/8] btrfs: use metadata specific helpers to simplify extent buffer helpers Qu Wenruo
2025-01-29  7:37 ` [PATCH 5/8] btrfs: simplify btrfs_clear_buffer_dirty() Qu Wenruo
2025-02-06  3:21   ` Qu Wenruo
2025-01-29  7:37 ` [PATCH 6/8] btrfs: simplify write_one_eb() Qu Wenruo
2025-01-29  7:37 ` [PATCH 7/8] btrfs: simplify read_extent_buffer_pages_nowait() Qu Wenruo
2025-01-29  7:37 ` [PATCH 8/8] btrfs: require strict data/metadata split for subpage check Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.