]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove vma arg from page_evictable
authorHugh Dickins <hughd@google.com>
Wed, 26 Sep 2012 01:33:56 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:27:01 +0000 (17:27 +1000)
commitcd3b3bdf14e93a225067b36061a7ec10bdac881c
treeba090af1f2ed7cc86044f883cc5f8aaa743fbaa4
parent92f78acb1cf7afa9b884799d3e5c1ca680f2874f
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