powerpc/mm: Don't lose "major" fault indication on retry
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:44 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:51 +0000 (16:06 +1000)
commitf43bb27ebf27ee3f90a42a08b86314d0239c30e4
treefe051faddef222be810a71eb944f87f65524de43
parentbd0d63f8095ae6cf83ade0ae7e8907ccc510a434
powerpc/mm: Don't lose "major" fault indication on retry

If the first iteration returns VM_FAULT_MAJOR but the second
one doesn't, we fail to account the fault as a major fault.

This fixes it and brings the code in line with x86.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c