Andrea Arcangeli 91600e9e59 thp: fix memory-failure hugetlbfs vs THP collision
hugetlbfs was changed to allow memory failure to migrate the hugetlbfs
pages and that broke THP as split_huge_page was then called on hugetlbfs
pages too.

compound_head/order was also run unsafe on THP pages that can be splitted
at any time.

All compound_head() invocations in memory-failure.c that are run on pages
that aren't pinned and that can be freed and reused from under us (while
compound_head is running) are buggy because compound_head can return a
dangling pointer, but I'm not fixing this as this is a generic
memory-failure bug not specific to THP but it applies to hugetlbfs too, so
I can fix it later after THP is merged upstream.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 17:32:47 -08:00
..
2011-01-13 17:32:41 -08:00
2011-01-13 17:32:42 -08:00
2010-08-08 21:57:23 +01:00
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:42 -08:00
2011-01-13 17:32:42 -08:00
2011-01-13 17:32:43 -08:00
2009-09-22 07:17:35 -07:00
2011-01-13 17:32:42 -08:00
2010-03-24 16:31:21 -07:00
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:41 -08:00
2010-05-21 18:31:21 -04:00
2011-01-13 17:32:43 -08:00
2011-01-13 17:32:41 -08:00
2010-05-25 08:07:00 -07:00
2011-01-07 17:50:26 +11:00
2011-01-13 17:32:33 -08:00
2011-01-13 17:32:43 -08:00
2011-01-13 17:32:41 -08:00
2011-01-13 17:32:42 -08:00
2011-01-13 17:32:41 -08:00
2009-06-23 12:50:05 -07:00
2011-01-13 17:32:36 -08:00
2011-01-13 17:32:43 -08:00