]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:41:46 +0000 (16:41 -0800)
commitc185df273d7364bbb654070d3a77b3c635ff8e34
tree3ddc219a5a7ab2572a4c6d096ac22c6052d02abb
parent6d5e1f0c50e18271cb9d5188378c6d577f648639
powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

commit 9ba0fdbfaed2e74005d87fab948c5522b86ff733 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/mm/slice.c