mm: remove vma arg from page_evictable
page_evictable(page, vma) is an irritant: almost all its callers pass NULL for vma. Remove the vma arg and use mlocked_vma_newpage(vma, page) explicitly in the couple of places it's needed. But in those places we don't even need page_evictable() itself! They're dealing with a freshly allocated anonymous page, which has no "mapping" and cannot be mlocked yet. Signed-off-by:Hugh Dickins <hughd@google.com> Acked-by:
Mel Gorman <mel@csn.ul.ie> Cc: Rik van Riel <riel@redhat.com> Acked-by:
Johannes Weiner <hannes@cmpxchg.org> Cc: Michel Lespinasse <walken@google.com> Cc: Ying Han <yinghan@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/vm/unevictable-lru.txt 3 additions, 7 deletionsDocumentation/vm/unevictable-lru.txt
- include/linux/swap.h 1 addition, 1 deletioninclude/linux/swap.h
- mm/internal.h 2 additions, 3 deletionsmm/internal.h
- mm/ksm.c 1 addition, 1 deletionmm/ksm.c
- mm/rmap.c 1 addition, 1 deletionmm/rmap.c
- mm/swap.c 1 addition, 1 deletionmm/swap.c
- mm/vmscan.c 9 additions, 18 deletionsmm/vmscan.c
Loading
Please register or sign in to comment