]> git.karo-electronics.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>
Wed, 3 Oct 2012 06:49:35 +0000 (16:49 +1000)
commit40c1acfc5c61894635dcf97226bce0606b014b09
tree2b91ae5fd4ece2a761d2b5bb8e885549a30eb2e4
parentebb7e03702a5a4184e4f9a5a256aea8899574819
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