Skip to content

nilfs2: eliminate kmap and kmap_atomic calls

Ryusuke Konishi linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-hotfixes-stable] nilfs2-convert-cpfile-to-use-kmap_local.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesApplied 15/15

Patches in v1 All 15 applied

#Subject and filesSizeRepliesApplied
1/15nilfs2: convert recovery logic to use kmap_localfs/nilfs2/recovery.c+2 -20 repliesApplied
2/15nilfs2: convert segment buffer to use kmap_localfs/nilfs2/segbuf.c+2 -20 repliesApplied
3/15nilfs2: convert nilfs_copy_buffer() to use kmap_localfs/nilfs2/page.c+4 -40 repliesApplied
4/15nilfs2: convert metadata file common code to use kmap_localfs/nilfs2/mdt.c+2 -20 repliesApplied
5/15nilfs2: convert sufile to use kmap_localfs/nilfs2/sufile.c+43 -430 repliesApplied
6/15nilfs2: convert persistent object allocator to use kmap_localfs/nilfs2/alloc.c+46 -450 repliesApplied
7/15nilfs2: convert DAT to use kmap_localfs/nilfs2/dat.c+19 -190 repliesApplied
8/15nilfs2: move nilfs_bmap_write call out of nilfs_write_inode_commonfs/nilfs2/inode.c fs/nilfs2/nilfs.h fs/nilfs2/segment.c+57 -310 repliesApplied
9/15nilfs2: do not acquire rwsem in nilfs_bmap_write()fs/nilfs2/bmap.c+0 -30 repliesApplied
10/15nilfs2: convert ifile to use kmap_localfs/nilfs2/ifile.c fs/nilfs2/ifile.h fs/nilfs2/inode.c +1 more+9 -100 repliesApplied
11/15nilfs2: localize highmem mapping for checkpoint creation within cpfilefs/nilfs2/cpfile.c fs/nilfs2/cpfile.h fs/nilfs2/segment.c+77 -290 repliesApplied
12/15nilfs2: localize highmem mapping for checkpoint finalization within cpfilefs/nilfs2/cpfile.c fs/nilfs2/cpfile.h fs/nilfs2/segment.c+82 -460 repliesApplied
13/15nilfs2: localize highmem mapping for checkpoint reading within cpfilefs/nilfs2/cpfile.c fs/nilfs2/cpfile.h fs/nilfs2/ifile.c +2 more+87 -340 repliesApplied
14/15nilfs2: remove nilfs_cpfile_{get,put}_checkpoint()fs/nilfs2/cpfile.c fs/nilfs2/cpfile.h+0 -1070 repliesApplied
15/15nilfs2: convert cpfile to use kmap_localfs/nilfs2/cpfile.c+45 -450 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/15] nilfs2: eliminate kmap and kmap_atomic calls

Hi Andrew,

Please queue this series for the next merge window.

This series converts remaining kmap and kmap_atomic calls to use kmap_local, mainly in metadata files, and eliminates calls to these deprecated kmap functions from nilfs2.

This series does not include converting metadata files to use folios, but it is a step in that direction.

Most conversions are straightforward, but some are not: the checkpoint file, the inode file, and the persistent object allocator. These have been adjusted or rewritten to avoid multiple kmap_local calls or nest them if necessary, and to eliminate long waits like block I/O within the highmem mapping sections.

This series has been tested in both 32-bit and 64-bit environments with varying block sizes.

Thanks,
Ryusuke Konishi

Ryusuke Konishi (15):
nilfs2: convert recovery logic to use kmap_local
nilfs2: convert segment buffer to use kmap_local
nilfs2: convert nilfs_copy_buffer() to use kmap_local
nilfs2: convert metadata file common code to use kmap_local
nilfs2: convert sufile to use kmap_local
nilfs2: convert persistent object allocator to use kmap_local
nilfs2: convert DAT to use kmap_local
nilfs2: move nilfs_bmap_write call out of nilfs_write_inode_common
nilfs2: do not acquire rwsem in nilfs_bmap_write()
nilfs2: convert ifile to use kmap_local
nilfs2: localize highmem mapping for checkpoint creation within cpfile
nilfs2: localize highmem mapping for checkpoint finalization within
cpfile
nilfs2: localize highmem mapping for checkpoint reading within cpfile
nilfs2: remove nilfs_cpfile_{get,put}_checkpoint()
nilfs2: convert cpfile to use kmap_local

 fs/nilfs2/alloc.c    |  91 ++++++------
 fs/nilfs2/bmap.c     |   3 -
 fs/nilfs2/cpfile.c   | 319 +++++++++++++++++++++++++++++--------------
 fs/nilfs2/cpfile.h   |  10 +-
 fs/nilfs2/dat.c      |  38 +++---
 fs/nilfs2/ifile.c    |  21 +--
 fs/nilfs2/ifile.h    |  10 +-
 fs/nilfs2/inode.c    |  44 +++---
 fs/nilfs2/mdt.c      |   4 +-
 fs/nilfs2/nilfs.h    |   3 +-
 fs/nilfs2/page.c     |   8 +-
 fs/nilfs2/recovery.c |   4 +-
 fs/nilfs2/segbuf.c   |   4 +-
 fs/nilfs2/segment.c  | 121 ++++++----------
 fs/nilfs2/sufile.c   |  86 ++++++------
 fs/nilfs2/super.c    |  31 +----
 16 files changed, 425 insertions(+), 372 deletions(-)
Signature · 1 line
2.34.1