]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit687df5d0ac38e40f52f6ef6cae79c97bc5ef6820
treefe051faddef222be810a71eb944f87f65524de43
parent25fd0a7d9a3034a9ce72a120b121ca2119bbeb7b
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