summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorHugh Dickins2012-10-09 01:33:18 +0200
committerLinus Torvalds2012-10-09 09:22:55 +0200
commit39b5f29ac1f988c1615fbc9c69f6651ab0d0c3c7 (patch)
treed8030f58d542bb3e811d83676b38c5b4b3a16c02 /mm/truncate.c
parentmm: fix invalidate_complete_page2() lock ordering (diff)
downloadkernel-qcow2-linux-39b5f29ac1f988c1615fbc9c69f6651ab0d0c3c7.tar.gz
kernel-qcow2-linux-39b5f29ac1f988c1615fbc9c69f6651ab0d0c3c7.tar.xz
kernel-qcow2-linux-39b5f29ac1f988c1615fbc9c69f6651ab0d0c3c7.zip
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions