]> 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>
Fri, 5 Oct 2012 04:01:09 +0000 (14:01 +1000)
commit2de4fe1dd0b82a2f69ffb1e6bfb2face46b71fe3
tree2d4a54c76bd1514e7c29458c2a6849dacb09f033
parent210a71a9e990c434221ec9e5a912fcf42a33ecf9
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