Files
kernel_amazon_mt8127-common/include/linux
Andrea Arcangeli e7a00c45f2 thp: add pmd_huge_pte to mm_struct
This increase the size of the mm struct a bit but it is needed to
preallocate one pte for each hugepage so that split_huge_page will not
require a fail path.  Guarantee of success is a fundamental property of
split_huge_page to avoid decrasing swapping reliability and to avoid
adding -ENOMEM fail paths that would otherwise force the hugepage-unaware
VM code to learn rolling back in the middle of its pte mangling operations
(if something we need it to learn handling pmd_trans_huge natively rather
being capable of rollback).  When split_huge_page runs a pte is needed to
succeed the split, to map the newly splitted regular pages with a regular
pte.  This way all existing VM code remains backwards compatible by just
adding a split_huge_page* one liner.  The memory waste of those
preallocated ptes is negligible and so it is worth it.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.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>
2011-01-13 17:32:41 -08:00
..
2011-01-06 22:32:52 +00:00
2011-01-12 14:37:42 +09:00
2011-01-10 08:51:44 -08:00
2011-01-13 08:03:12 -08:00
2011-01-10 07:38:53 -08:00
2011-01-10 08:51:44 -08:00
2011-01-12 20:16:43 -05:00
2011-01-10 08:51:44 -08:00
2011-01-07 17:50:27 +11:00
2011-01-07 17:50:23 +11:00
2011-01-10 07:38:53 -08:00
2011-01-10 22:11:23 +01:00
2011-01-13 17:32:31 -08:00
2011-01-13 17:32:31 -08:00
2010-12-22 10:27:53 +01:00
2011-01-07 17:50:31 +11:00
2011-01-13 17:32:41 -08:00
2011-01-13 17:32:40 -08:00
2011-01-07 17:50:33 +11:00
2011-01-07 17:50:27 +11:00
2011-01-10 16:05:30 -08:00
2011-01-11 14:17:09 -05:00
2010-12-20 14:49:47 -05:00
2011-01-13 17:32:41 -08:00
2011-01-07 17:50:33 +11:00
2010-12-24 15:04:41 +01:00
2011-01-13 08:03:21 -08:00
2011-01-07 17:50:31 +11:00
2011-01-13 08:03:18 -08:00
2011-01-10 09:46:24 +11:00
2011-01-07 17:50:27 +11:00
2011-01-13 08:03:19 -08:00
2011-01-13 08:03:20 -08:00
2011-01-07 20:57:22 -05:00
2010-12-20 09:37:33 +01:00
2011-01-13 08:03:24 -08:00