Skip to content

nilfs2: Finish folio conversion

Ryusuke Konishi linux-fsdevel linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] nilfs2-convert-metadata-aops-from-writepage-to-writepages.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12nilfs2: convert segment buffer to be folio-basedfs/nilfs2/segbuf.c+10 -70 repliesApplied
2/12nilfs2: convert common metadata file code to be folio-basedfs/nilfs2/alloc.c fs/nilfs2/cpfile.c fs/nilfs2/mdt.c+20 -130 repliesApplied
3/12nilfs2: convert segment usage file to be folio-basedfs/nilfs2/sufile.c+82 -780 repliesApplied
4/12nilfs2: convert persistent object allocator to be folio-basedfs/nilfs2/alloc.c fs/nilfs2/alloc.h+89 -500 repliesApplied
5/12nilfs2: convert inode file to be folio-basedfs/nilfs2/ifile.c fs/nilfs2/ifile.h+7 -70 repliesApplied
6/12nilfs2: convert DAT file to be folio-basedfs/nilfs2/dat.c+52 -460 repliesApplied
7/12nilfs2: remove nilfs_palloc_block_get_entry()fs/nilfs2/alloc.c fs/nilfs2/alloc.h+0 -210 repliesApplied
8/12nilfs2: convert checkpoint file to be folio-basedfs/nilfs2/cpfile.c+204 -1750 repliesApplied
9/12nilfs2: Remove nilfs_writepagefs/nilfs2/inode.c+1 -320 repliesApplied
10/12nilfs2: Convert nilfs_page_count_clean_buffers() to take a foliofs/nilfs2/dir.c fs/nilfs2/inode.c fs/nilfs2/page.c +1 more+6 -60 repliesApplied
11/12nilfs2: Convert nilfs_recovery_copy_block() to take a foliofs/nilfs2/recovery.c+7 -100 repliesApplied
12/12nilfs2: Convert metadata aops from writepage to writepagesfs/nilfs2/mdt.c+15 -40 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/12] nilfs2: Finish folio conversion

Andrew, please queue this series for the next cycle.

This series converts all remaining page structure references in nilfs2 to folio-based, except for nilfs_copy_buffer function, which was converted to use folios in advance for cross-fs page flags cleanup.

This prioritizes folio conversion, and does not include buffer head reference reduction, nor does it support for block sizes larger than the system page size.

The first eight patches in this series mainly convert each of the nilfs2-specific metadata implementations to use folios. The last four patches, by Matthew Wilcox, eliminate aops writepage callbacks and convert the remaining page structure references to folio-based. This part reflects some corrections to the patch series posted by Matthew.

It has passed operation checks and load tests with different block sizes on multiple environments, including 32-bit kernel, and is sufficiently stable.

Thanks,
Ryusuke Konishi

Matthew Wilcox (Oracle) (4):
nilfs2: Remove nilfs_writepage
nilfs2: Convert nilfs_page_count_clean_buffers() to take a folio
nilfs2: Convert nilfs_recovery_copy_block() to take a folio
nilfs2: Convert metadata aops from writepage to writepages

Ryusuke Konishi (8):
nilfs2: convert segment buffer to be folio-based
nilfs2: convert common metadata file code to be folio-based
nilfs2: convert segment usage file to be folio-based
nilfs2: convert persistent object allocator to be folio-based
nilfs2: convert inode file to be folio-based
nilfs2: convert DAT file to be folio-based
nilfs2: remove nilfs_palloc_block_get_entry()
nilfs2: convert checkpoint file to be folio-based

 fs/nilfs2/alloc.c    | 148 +++++++++--------
 fs/nilfs2/alloc.h    |   4 +-
 fs/nilfs2/cpfile.c   | 383 +++++++++++++++++++++++--------------------
 fs/nilfs2/dat.c      |  98 +++++------
 fs/nilfs2/dir.c      |   2 +-
 fs/nilfs2/ifile.c    |  10 +-
 fs/nilfs2/ifile.h    |   4 +-
 fs/nilfs2/inode.c    |  35 +---
 fs/nilfs2/mdt.c      |  40 +++--
 fs/nilfs2/page.c     |   4 +-
 fs/nilfs2/page.h     |   4 +-
 fs/nilfs2/recovery.c |  17 +-
 fs/nilfs2/segbuf.c   |  17 +-
 fs/nilfs2/sufile.c   | 160 +++++++++---------
 14 files changed, 485 insertions(+), 441 deletions(-)
Signature · 1 line
2.43.0