]> 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)
commitaf34db0668e8ba13787a1f116ac3c7f9ed91f452
treefe051faddef222be810a71eb944f87f65524de43
parent91c446b2cdafe2614125c532cf61026f7e019d01
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