]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove free_page_mlock
authorHugh Dickins <hughd@google.com>
Wed, 26 Sep 2012 01:33:57 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:08 +0000 (15:45 +1000)
commitcff402fa9aedf147fc8623e9c4f19248fed40287
tree0302f6354c9b95a94ea5eed162a48bd1eeeaea45
parentfbaca4c829e4468a850893b27eb96db67d8b8d1f
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