Hugh Dickins 79f4b7bf39 badpage: simplify page_alloc flag check+clear
Simplify the PAGE_FLAGS checking and clearing when freeing and allocating
a page: check the same flags as before when freeing, clear ALL the flags
(unless PageReserved) when freeing, check ALL flags off when allocating.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:07 -08:00
..
2009-01-06 15:58:59 -08:00
2009-01-06 15:59:06 -08:00
2009-01-06 15:59:04 -08:00
2009-01-06 15:59:02 -08:00
2009-01-05 17:44:42 -08:00
2009-01-05 17:44:42 -08:00
2009-01-05 11:54:28 -05:00
2009-01-05 11:54:28 -05:00
2009-01-01 10:12:29 +10:30
2009-01-01 10:12:29 +10:30
2009-01-01 10:12:29 +10:30
2009-01-06 15:59:06 -08:00
2009-01-06 15:59:06 -08:00
2009-01-01 10:12:29 +10:30