]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove vma arg from page_evictable
authorHugh Dickins <hughd@google.com>
Fri, 21 Sep 2012 01:01:40 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:23 +0000 (18:46 +1000)
commit549cd5f8daefff912ad81d3c618ea15f08ef371d
treee1887d9f22ff92977302cb80ac7ee21688df37ad
parente08d3cc580cdac7040ef070c2a1b329afcbcf70f
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>
Cc: 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