On Tue, 25 Nov 2008, Mel Gorman wrote: > free_hugepage_region() is currently assuming that the region was backed > by hugepages. This may not be the case when GHP_FALLBACK is specified > and it was luck on the original test machines that the addresses > happened to work out. The test case also makes assumptions on alignment. > > This patch makes free_huge_pages() an internal helper function called > __free_huge_pages() which can take aligned or unaligned addresses. When > it is told the address is unaligned, it'll check the mappings to see if > it was page or hugepage aligned before freeing. free_huge_pages() and > free_hugepage_region() only differ then on whether the addresses are > aligned or not. > > Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
Applied. thanks. Eric
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel