Skip to content

nilfs2: Folio conversions for directory paths

Ryusuke Konishi linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] nilfs2-convert-nilfs_page_bug-to-nilfs_folio_bug.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 2 repliesApplied 17/17

Patches in v1 All 17 applied

#Subject and filesSizeRepliesApplied
1/17nilfs2: move page release outside of nilfs_delete_entry and nilfs_set_linkfs/nilfs2/dir.c fs/nilfs2/namei.c fs/nilfs2/nilfs.h+14 -161 replyApplied
2/17nilfs2: eliminate staggered calls to kunmap in nilfs_renamefs/nilfs2/namei.c+2 -11 replyApplied
3/17nilfs2: Remove page_address() from nilfs_set_linkfs/nilfs2/dir.c+1 -10 repliesApplied
4/17nilfs2: Remove page_address() from nilfs_add_linkfs/nilfs2/dir.c+1 -10 repliesApplied
5/17nilfs2: Remove page_address() from nilfs_delete_entryfs/nilfs2/dir.c+2 -20 repliesApplied
6/17nilfs2: Return the mapped address from nilfs_get_page()fs/nilfs2/dir.c+27 -300 repliesApplied
7/17nilfs2: Pass the mapped address to nilfs_check_page()fs/nilfs2/dir.c+2 -30 repliesApplied
8/17nilfs2: Switch to kmap_local for directory handlingfs/nilfs2/dir.c fs/nilfs2/namei.c fs/nilfs2/nilfs.h+19 -260 repliesApplied
9/17nilfs2: Add nilfs_get_folio()fs/nilfs2/dir.c+32 -210 repliesApplied
10/17nilfs2: Convert nilfs_readdir to use a foliofs/nilfs2/dir.c+5 -50 repliesApplied
11/17nilfs2: Convert nilfs_find_entry to use a foliofs/nilfs2/dir.c+6 -60 repliesApplied
12/17nilfs2: Convert nilfs_rename() to use foliosfs/nilfs2/dir.c fs/nilfs2/namei.c fs/nilfs2/nilfs.h+60 -640 repliesApplied
13/17nilfs2: Convert nilfs_add_link() to use a foliofs/nilfs2/dir.c+14 -170 repliesApplied
14/17nilfs2: Convert nilfs_empty_dir() to use a foliofs/nilfs2/dir.c+4 -150 repliesApplied
15/17nilfs2: Convert nilfs_make_empty() to use a foliofs/nilfs2/dir.c+9 -90 repliesApplied
16/17nilfs2: Convert nilfs_prepare_chunk() and nilfs_commit_chunk() to foliosfs/nilfs2/dir.c+19 -200 repliesApplied
17/17nilfs2: Convert nilfs_page_bug() to nilfs_folio_bug()fs/nilfs2/btnode.c fs/nilfs2/page.c fs/nilfs2/page.h+18 -170 repliesApplied

Reviews trailers per patch

2 of 17 patches have a Reviewed-by or Acked-by.

PatchMatthew Wilcox (Oracle)
1/17R-b
2/17R-b
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

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/17] nilfs2: Folio conversions for directory paths

Hi Andrew,

please add this series to your queue for the next merge window.

This series applies page->folio conversions to nilfs2 directory operations. This reduces hidden compound_head() calls and also converts deprecated kmap calls to kmap_local in the directory code.

Although nilfs2 does not yet support large folios, Matthew has done his best here to include support for large folios, which will be needed for devices with large block sizes.

This series corresponds to the second half of the original post [1], but with two complementary patches inserted at the beginning and some adjustments, to prevent a kmap_local constraint violation found during testing with highmem mapping.

[1] https://lkml.kernel.org/r/[email protected]

I have reviewed all changes and tested this for regular and small block sizes, both on machines with and without highmem mapping. No issues found.

Thanks,
Ryusuke Konishi

Matthew Wilcox (Oracle) (15):
nilfs2: Remove page_address() from nilfs_set_link
nilfs2: Remove page_address() from nilfs_add_link
nilfs2: Remove page_address() from nilfs_delete_entry
nilfs2: Return the mapped address from nilfs_get_page()
nilfs2: Pass the mapped address to nilfs_check_page()
nilfs2: Switch to kmap_local for directory handling
nilfs2: Add nilfs_get_folio()
nilfs2: Convert nilfs_readdir to use a folio
nilfs2: Convert nilfs_find_entry to use a folio
nilfs2: Convert nilfs_rename() to use folios
nilfs2: Convert nilfs_add_link() to use a folio
nilfs2: Convert nilfs_empty_dir() to use a folio
nilfs2: Convert nilfs_make_empty() to use a folio
nilfs2: Convert nilfs_prepare_chunk() and nilfs_commit_chunk() to
folios
nilfs2: Convert nilfs_page_bug() to nilfs_folio_bug()

Ryusuke Konishi (2):
nilfs2: move page release outside of nilfs_delete_entry and
nilfs_set_link
nilfs2: eliminate staggered calls to kunmap in nilfs_rename

 fs/nilfs2/btnode.c |   4 +-
 fs/nilfs2/dir.c    | 244 +++++++++++++++++++++------------------------
 fs/nilfs2/namei.c  |  38 +++----
 fs/nilfs2/nilfs.h  |  20 ++--
 fs/nilfs2/page.c   |  25 ++---
 fs/nilfs2/page.h   |   6 +-
 6 files changed, 159 insertions(+), 178 deletions(-)
Signature · 1 line
2.34.1