]> err.no Git - linux-2.6/commit
[PATCH] powerpc: Make hugepage mappings respect hint addresses
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 24 Nov 2005 03:16:15 +0000 (14:16 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:50:28 +0000 (14:50 +1100)
commit456752f7505ef8f580ffd157558e661da2767d99
tree8854e9dd2d21ac440f691dd16881e596db61896b
parent706e6b2caf285d3eb056c2847b7c53ae823e8a87
[PATCH] powerpc: Make hugepage mappings respect hint addresses

Currently, the powerpc version of hugetlb_get_unmapped_area() entirely
ignores the hint address.  The only way to get a hugepage mapping at a
specified address is with MAP_FIXED, in which case there's no way
(short of parsing /proc/self/maps) for userspace to tell if it will
clobber an existing mapping.  This is inconvenient, so the patch below
makes hugepage mappings use the given hint address if possible.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/hugetlbpage.c