mm: more checks on free_pages_prepare() for tail pages
authorKirill A. Shutemov <[email protected]>
Wed, 11 Feb 2015 23:25:52 +0000 (15:25 -0800)
committerLinus Torvalds <[email protected]>
Thu, 12 Feb 2015 01:06:02 +0000 (17:06 -0800)
commit81422f29c5f4fb968023f465218c3d978c133ceb
tree87ee41d4351d2ecd1a8affeb563e3e8aca2961d2
parent6e9f0d582dde095d971a3c6ce4685a218a0eac8e
mm: more checks on free_pages_prepare() for tail pages

Although it was not called, destroy_compound_page() did some potentially
useful checks.  Let's re-introduce them in free_pages_prepare(), where
they can be actually triggered when CONFIG_DEBUG_VM=y.

compound_order() assert is already in free_pages_prepare().  We have few
checks for tail pages left.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c