]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64: fix dump_linuxpagetables "present" flag
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 15 Oct 2018 06:37:41 +0000 (06:37 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Oct 2018 02:26:47 +0000 (13:26 +1100)
commit1cabaea4a9a0c25019f40503244f2847f84550dc
tree94d3ba8404cfded1d29fae9844feeaf3882ec00a
parent33fb7163ad6bf7b1225abd808442451427fd17d5
powerpc/book3s64: fix dump_linuxpagetables "present" flag

Since commit 5b2fd3576f16 ("powerpc/mm/books3s: Add new pte bit to
mark pte temporarily invalid."), _PAGE_PRESENT doesn't mean exactly
that a page is present. A page is also considered preset when
_PAGE_INVALID is set.

This patch changes the meaning of "present" and adds a status "valid"
associated to the _PAGE_PRESENT flag.

Fixes: 5b2fd3576f16 ("powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid.")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/dump_linuxpagetables-book3s64.c