]> Git Repo - linux.git/commit
parisc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
authorDavid Hildenbrand <[email protected]>
Fri, 13 Jan 2023 17:10:16 +0000 (18:10 +0100)
committerAndrew Morton <[email protected]>
Fri, 3 Feb 2023 06:33:09 +0000 (22:33 -0800)
commit6d239fc78c0b0c687e5408573350714e6e789d71
treebad7e6a685afd5f0b92283fcf7136545634e4825
parent5ae3e74474f82613482ed67b0c234f61ac6ca2dd
parisc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE

Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by using the yet-unused
_PAGE_ACCESSED location in the swap PTE.  Looking at pte_present() and
pte_none() checks, there seems to be no actual reason why we cannot use
it: we only have to make sure we're not using _PAGE_PRESENT.

Reusing this bit avoids having to steal one bit from the swap offset.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: Helge Deller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
arch/parisc/include/asm/pgtable.h
This page took 0.059558 seconds and 4 git commands to generate.