Files
ubports_kernel_google_msm/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-12 14:37:42 +09:00
2011-01-13 08:03:12 -08:00
2009-12-10 23:52:01 +00:00
2011-01-12 20:16:43 -05:00
2011-01-13 17:32:31 -08:00
2011-01-13 17:32:31 -08:00
2011-01-13 17:32:41 -08:00
2011-01-13 17:32:40 -08:00
2011-01-11 14:17:09 -05:00
2011-01-13 17:32:41 -08:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:18 -08:00
2011-01-13 08:03:19 -08:00
2011-01-13 08:03:20 -08:00
2011-01-13 08:03:24 -08:00