]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove free_page_mlock
authorHugh Dickins <hughd@google.com>
Fri, 28 Sep 2012 00:19:54 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Oct 2012 03:12:37 +0000 (14:12 +1100)
commitdafbb33233bb93a993e56756c24c090a22b8f6bd
treed5fcb147905d5ce591f8a267a24b63fa11f6df23
parent4412d09c464524a6b6f09c7eba138c70101fbdd7
mm: remove free_page_mlock

We should not be seeing non-0 unevictable_pgs_mlockfreed any longer.  So
remove free_page_mlock() from the page freeing paths: __PG_MLOCKED is
already in PAGE_FLAGS_CHECK_AT_FREE, so free_pages_check() will now be
checking it, reporting "BUG: Bad page state" if it's ever found set.
Comment UNEVICTABLE_MLOCKFREED and unevictable_pgs_mlockfreed always 0.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Cc: 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>
include/linux/vm_event_item.h
mm/page_alloc.c
mm/vmstat.c