]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove free_page_mlock
authorHugh Dickins <hughd@google.com>
Fri, 21 Sep 2012 01:01:41 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:59 +0000 (15:58 +1000)
commita64c3ef38e7c0678e336cc6ed1864f580fd22103
tree770cf58e2cfc1d896770a558c8735dcd361d8045
parentf55e822ec8df2410d43f383e1be97377b30010cd
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>
Cc: 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