Skip to content

Start converting buffer_heads to use folios

Matthew Wilcox (Oracle) linux-fsdevel 1 version Applied

Status from this message: [merged mm-stable] mpage-use-b_folio-in-do_mpage_readpage.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12buffer: Add b_folio as an alias of b_pageinclude/linux/buffer_head.h+4 -10 repliesApplied
2/12buffer: Replace obvious uses of b_page with b_foliofs/buffer.c+6 -60 repliesApplied
3/12buffer: Use b_folio in touch_buffer()fs/buffer.c+1 -10 repliesApplied
4/12buffer: Use b_folio in end_buffer_async_read()fs/buffer.c+9 -90 repliesApplied
5/12buffer: Use b_folio in end_buffer_async_write()fs/buffer.c+5 -50 repliesApplied
6/12page_io: Remove buffer_head includemm/page_io.c+0 -10 repliesApplied
7/12buffer: Use b_folio in mark_buffer_dirty()fs/buffer.c+6 -60 repliesApplied
8/12gfs2: Replace obvious uses of b_page with b_foliofs/gfs2/glops.c fs/gfs2/log.c fs/gfs2/meta_io.c+3 -30 repliesApplied
9/12jbd2: Replace obvious uses of b_page with b_foliofs/jbd2/commit.c fs/jbd2/journal.c+3 -70 repliesApplied
10/12nilfs2: Replace obvious uses of b_page with b_foliofs/nilfs2/btnode.c fs/nilfs2/btree.c fs/nilfs2/gcinode.c +2 more+6 -60 repliesApplied
11/12reiserfs: Replace obvious uses of b_page with b_foliofs/reiserfs/journal.c fs/reiserfs/tail_conversion.c+3 -30 repliesApplied
12/12mpage: Use b_folio in do_mpage_readpage()fs/mpage.c+1 -10 repliesApplied

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan Kara
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Start converting buffer_heads to use folios

I was hoping that filesystems would convert from buffer_heads to iomap, but that's not happening particularly quickly. So the buffer_head infrastructure needs to be converted from being page-based to being folio-based. This is the initial patchset that I hope Andrew will take for 6.3. I have a lot of followup patches, but many of them should go through individual filesystem trees (ext4, f2fs, etc). They can wait for 6.4.

Matthew Wilcox (Oracle) (12):
buffer: Add b_folio as an alias of b_page
buffer: Replace obvious uses of b_page with b_folio
buffer: Use b_folio in touch_buffer()
buffer: Use b_folio in end_buffer_async_read()
buffer: Use b_folio in end_buffer_async_write()
page_io: Remove buffer_head include
buffer: Use b_folio in mark_buffer_dirty()
gfs2: Replace obvious uses of b_page with b_folio
jbd2: Replace obvious uses of b_page with b_folio
nilfs2: Replace obvious uses of b_page with b_folio
reiserfs: Replace obvious uses of b_page with b_folio
mpage: Use b_folio in do_mpage_readpage()

 fs/buffer.c                   | 54 +++++++++++++++++------------------
 fs/gfs2/glops.c               |  2 +-
 fs/gfs2/log.c                 |  2 +-
 fs/gfs2/meta_io.c             |  2 +-
 fs/jbd2/commit.c              |  8 ++----
 fs/jbd2/journal.c             |  2 +-
 fs/mpage.c                    |  2 +-
 fs/nilfs2/btnode.c            |  2 +-
 fs/nilfs2/btree.c             |  2 +-
 fs/nilfs2/gcinode.c           |  2 +-
 fs/nilfs2/mdt.c               |  4 +--
 fs/nilfs2/segment.c           |  2 +-
 fs/reiserfs/journal.c         |  4 +--
 fs/reiserfs/tail_conversion.c |  2 +-
 include/linux/buffer_head.h   |  5 +++-
 mm/page_io.c                  |  1 -
 16 files changed, 47 insertions(+), 49 deletions(-)
Signature · 1 line
2.35.1