powerpc/mm: Handle hypervisor pte insert failure in __hash_page_huge
authorAnton Blanchard <anton@samba.org>
Wed, 14 Jul 2010 19:31:48 +0000 (19:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 22 Jul 2010 22:44:51 +0000 (08:44 +1000)
commitb1623e7eb280f853f60338c7bb68bd3f3a970205
tree86b0a532dd3cdd8228f6efbd3067d7b693eb159c
parentb37fa16e78d6f9790462b3181602a26b5af36260
powerpc/mm: Handle hypervisor pte insert failure in __hash_page_huge

If the hypervisor gives us an error on a hugepage insert we panic. The
normal page code already handles this by returning an error instead and we end
calling low_hash_fault which will just kill the task if possible.

The patch below does a similar thing for the hugepage case.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hugetlbpage-hash64.c