Skip to content

RFC make try_to_unmap simple

Minchan Kim linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mm: use SWAP_SUCCESS instead of 0mm/huge_memory.c+1 -15 replies
2/11mm: remove unncessary ret in page_referencedmm/rmap.c+1 -23 replies
3/11mm: remove SWAP_DIRTY in ttuinclude/linux/rmap.h mm/rmap.c mm/vmscan.c+2 -64 replies
4/11mm: remove SWAP_MLOCK check for SWAP_SUCCESS in ttumm/rmap.c+1 -14 replies
5/11mm: make the try_to_munlock void functioninclude/linux/rmap.h mm/mlock.c mm/rmap.c+7 -177 replies
6/11mm: remove SWAP_MLOCK in ttuinclude/linux/rmap.h mm/rmap.c mm/vmscan.c+4 -144 replies
7/11mm: remove SWAP_AGAIN in ttumm/rmap.c mm/vmscan.c+3 -102 replies
8/11mm: make ttu's return booleaninclude/linux/rmap.h mm/huge_memory.c mm/memory-failure.c +2 more+18 -273 replies
9/11mm: make rmap_walk void functioninclude/linux/ksm.h include/linux/rmap.h mm/ksm.c +1 more+23 -340 replies
10/11mm: make rmap_one boolean functioninclude/linux/rmap.h mm/ksm.c mm/migrate.c +2 more+21 -210 replies
11/11mm: remove SWAP_[SUCCESS|AGAIN|FAIL]include/linux/rmap.h+0 -72 replies

Reviews trailers per patch

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

PatchKirill A. Shutemov
1/11
2/11A-b
3/11A-b
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 00/11] make try_to_unmap simple

Currently, try_to_unmap returns various return value(SWAP_SUCCESS, SWAP_FAIL, SWAP_AGAIN, SWAP_DIRTY and SWAP_MLOCK). When I look into that, it's unncessary complicated so this patch aims for cleaning it up. Change ttu to boolean function so we can remove SWAP_AGAIN, SWAP_DIRTY, SWAP_MLOCK.

This patchset is based on v4.10-mmots-2017-02-28-17-33.

Minchan Kim (11):
mm: use SWAP_SUCCESS instead of 0
mm: remove unncessary ret in page_referenced
mm: remove SWAP_DIRTY in ttu
mm: remove SWAP_MLOCK check for SWAP_SUCCESS in ttu
mm: make the try_to_munlock void function
mm: remove SWAP_MLOCK in ttu
mm: remove SWAP_AGAIN in ttu
mm: make ttu's return boolean
mm: make rmap_walk void function
mm: make rmap_one boolean function
mm: remove SWAP_[SUCCESS|AGAIN|FAIL]

 include/linux/ksm.h  |  5 ++-
 include/linux/rmap.h | 21 ++++--------
 mm/huge_memory.c     |  4 +--
 mm/ksm.c             | 16 ++++-----
 mm/memory-failure.c  | 22 ++++++------
 mm/migrate.c         |  4 +--
 mm/mlock.c           |  6 ++--
 mm/page_idle.c       |  4 +--
 mm/rmap.c            | 97 ++++++++++++++++++++--------------------------------
 mm/vmscan.c          | 26 +++-----------
 10 files changed, 73 insertions(+), 132 deletions(-)
Signature · 7 lines
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>