arm64/mm: Refactor __do_page_fault()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 7 Jun 2019 09:13:06 +0000 (14:43 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 7 Jun 2019 13:35:12 +0000 (14:35 +0100)
commit4745224b45097d333358bce298aea2137246183c
treefb1af32af5b20304dc3056e12b1f3ec30e6f6d24
parentc49bd02f4c7412f0182252ae2ef6e916ca4ff359
arm64/mm: Refactor __do_page_fault()

__do_page_fault() is over complicated with multiple goto statements. This
cleans up the code flow and while there drops local variable vm_fault_t.

Reviewed-by: Mark Rutland <Mark.rutland@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/fault.c