]> 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>
Thu, 4 Oct 2012 05:03:33 +0000 (15:03 +1000)
commit5ae5cd5ba39f3554616683467e775294bf116cc7
treeb9914d4dbc6368e71aad7a23591886bff56eac5c
parent26e6414b7df6fa0584eaa812d1934d79645288a0
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