mm: introduce free_pages_prepare()
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Mon, 24 May 2010 21:32:38 +0000 (14:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:00 +0000 (08:07 -0700)
commitec95f53aa6ed62ba68660cb19c8474ebe9025cce
tree953ad71c8ee0373ca76f17ee9df65358ad2fe7b7
parent5f53e76299ceebd68bdf9495e8ff80db77711236
mm: introduce free_pages_prepare()

free_hot_cold_page() and __free_pages_ok() have very similar freeing
preparation.  Consolidate them.

[akpm@linux-foundation.org: fix busted coding style]
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c