Skip to content

Removing the lru_cache_add() wrapper

Vishal Moola (Oracle) linux-fsdevel linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] khugepage-replace-lru_cache_add-with-folio_add_lru.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5filemap: Convert replace_page_cache_page() to replace_page_cache_folio()fs/fuse/dev.c include/linux/pagemap.h mm/filemap.c+27 -291 replyApplied
2/5fuse: Convert fuse_try_move_page() to use foliosfs/fuse/dev.c+28 -273 repliesApplied
3/5userfualtfd: Replace lru_cache functions with folio_add functionsmm/userfaultfd.c+4 -27 repliesApplied
4/5khugepage: Replace lru_cache_add() with folio_add_lru()mm/khugepaged.c+7 -41 replyApplied
5/5folio-compat: Remove lru_cache_add()include/linux/swap.h mm/folio-compat.c mm/truncate.c +1 more+2 -91 replyApplied

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchMatthew Wilcox (Oracle)Miklos Szeredi
1/5R-b
2/5A-b
3/5
4/5R-b
5/5R-b

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 0/5] Removing the lru_cache_add() wrapper

This patchset replaces all calls of lru_cache_add() with the folio
equivalent: folio_add_lru(). This is allows us to get rid of the wrapper The series passes xfstests and the userfaultfd selftests.

I haven't been able to hit the fuse_try_move_page() function, so I haven't been able to test those changes. Since replace_page_cache_page() is only called by fuse_try_move_page() I haven't been able to test that as well. Testing and review of both would be beneficial.

Vishal Moola (Oracle) (5):
filemap: Convert replace_page_cache_page() to
replace_page_cache_folio()
fuse: Convert fuse_try_move_page() to use folios
userfualtfd: Replace lru_cache functions with folio_add functions
khugepage: Replace lru_cache_add() with folio_add_lru()
folio-compat: Remove lru_cache_add()

 fs/fuse/dev.c           | 55 +++++++++++++++++++++--------------------
 include/linux/pagemap.h |  2 +-
 include/linux/swap.h    |  1 -
 mm/filemap.c            | 52 +++++++++++++++++++-------------------
 mm/folio-compat.c       |  6 -----
 mm/khugepaged.c         | 11 ++++++---
 mm/truncate.c           |  2 +-
 mm/userfaultfd.c        |  6 +++--
 mm/workingset.c         |  2 +-
 9 files changed, 67 insertions(+), 70 deletions(-)
Signature · 1 line
2.38.1