]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptdump: Refactor update of pg_state
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 29 Jun 2020 11:17:19 +0000 (11:17 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 14:01:31 +0000 (00:01 +1000)
commite428e6f541a0f80ed496777dbf6bd8648b096612
treed55cb16038343867741a37fb66caf7320dfeda57
parent773cadb483d54f045f52ee3668ff331f1e568480
powerpc/ptdump: Refactor update of pg_state

In note_page(), the pg_state is updated the same way in two places.

Add note_page_update_state() to do it.

Also include the display of boundary markers there as it is missing
"no level" leg, leading to a mismatch when the first two markers
are at the same address and the first displayed area uses that
address.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a284a809f01c705bbaab303b06fda216f147a99a.1593429426.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/ptdump/ptdump.c