]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: remove vma arg from page_evictable
authorHugh Dickins <hughd@google.com>
Fri, 28 Sep 2012 00:19:53 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 03:00:16 +0000 (14:00 +1100)
commitb9f658234ac9c4e9761ca1faa7f9a756af805b6e
treecab437605bd0c187ffe814262eba4acd6214a406
parent4a095d0f33935d8e3f7710f30cac9c81e4e38885
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>
Documentation/vm/unevictable-lru.txt
include/linux/swap.h
mm/internal.h
mm/ksm.c
mm/rmap.c
mm/swap.c
mm/vmscan.c