Skip to content

JFS folio conversion

Matthew Wilcox (Oracle) linux-fsdevel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 2 repliesIn review
  2. v113 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fix build errors on machines with PAGE_SIZE > 4096

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13jfs: Convert metapage_read_folio to use folio APIsfs/jfs/jfs_metapage.c+13 -220 replies
2/13jfs: Convert metapage_writepage to metapage_write_foliofs/jfs/jfs_metapage.c+41 -340 replies
3/13jfs: Convert __get_metapage to use a foliofs/jfs/jfs_metapage.c+14 -140 replies
4/13jfs: Convert insert_metapage() to take a foliofs/jfs/jfs_metapage.c+13 -180 replies
5/13jfs; Convert release_metapage to use a foliofs/jfs/jfs_metapage.c+10 -120 replies
6/13jfs: Convert drop_metapage and remove_metapage to take a foliofs/jfs/jfs_metapage.c+12 -120 replies
7/13jfs: Convert dec_io to take a foliofs/jfs/jfs_metapage.c+17 -150 replies
8/13jfs; Convert __invalidate_metapages to use a foliofs/jfs/jfs_metapage.c+6 -60 replies
9/13jfs: Convert page_to_mp to folio_to_mpfs/jfs/jfs_metapage.c+12 -100 replies
10/13jfs: Convert inc_io to take a foliofs/jfs/jfs_metapage.c+8 -70 replies
11/13jfs: Convert force_metapage to use a foliofs/jfs/jfs_metapage.c+8 -90 replies
12/13jfs: Change metapage->page to metapage->foliofs/jfs/jfs_logmgr.c fs/jfs/jfs_metapage.c fs/jfs/jfs_metapage.h+22 -220 replies
13/13fs: Remove i_blocks_per_pageinclude/linux/pagemap.h+0 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/13] JFS folio conversion

This patchset removes uses of struct page from the I/O paths of JFS. write_begin and write_end are still passed a struct page, but they convert to a folio as their first thing. The logmgr still uses a struct page, but I think that's one we actually don't want to convert since it's never inserted into the page cache.

I've included the removal of i_blocks_per_page() in this series as JFS is the last user.

Tested with xfstests; some failures observed, but they don't seem to be related to these patches. I haven't tried with PAGE_SIZE > 4kB, so the MPS_PER_PAGE > 1 paths are untested.

v2:
- Fix build errors on machines with PAGE_SIZE > 4096

Matthew Wilcox (Oracle) (13):
jfs: Convert metapage_read_folio to use folio APIs
jfs: Convert metapage_writepage to metapage_write_folio
jfs: Convert __get_metapage to use a folio
jfs: Convert insert_metapage() to take a folio
jfs; Convert release_metapage to use a folio
jfs: Convert drop_metapage and remove_metapage to take a folio
jfs: Convert dec_io to take a folio
jfs; Convert __invalidate_metapages to use a folio
jfs: Convert page_to_mp to folio_to_mp
jfs: Convert inc_io to take a folio
jfs: Convert force_metapage to use a folio
jfs: Change metapage->page to metapage->folio
fs: Remove i_blocks_per_page

 fs/jfs/jfs_logmgr.c     |   2 +-
 fs/jfs/jfs_metapage.c   | 299 ++++++++++++++++++++--------------------
 fs/jfs/jfs_metapage.h   |  16 +--
 include/linux/pagemap.h |   6 -
 4 files changed, 156 insertions(+), 167 deletions(-)
Signature · 1 line
2.43.0