]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Wed, 14 Jan 2009 09:09:34 +0000 (09:09 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 16 Jan 2009 05:15:16 +0000 (16:15 +1100)
commit9ba0fdbfaed2e74005d87fab948c5522b86ff733
tree723f6080b37a16e7b0a75e017c0886898c58b7d7
parent5d9ee3ff3dbf815cd9ee18c166bb9b538e8057d2
powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

The subpage_prot syscall fails on second and subsequent calls for a given
region, because is_hugepage_only_range() is mis-identifying the 4 kB
slices when the process has a 64 kB page size.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/slice.c