summaryrefslogtreecommitdiff
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-01-13 18:10:24 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-02 22:33:10 -0800
commit93c0eac40d4e3ce4d5a3c6e0dc74eceaf8f63e0d (patch)
treec395033241b69f463b935ca757fff98a7f3d5cd8 /mm/rmap.c
parente2858d778e6832d8f58dc3b361f78bd9f03cd2dd (diff)
downloadlwn-93c0eac40d4e3ce4d5a3c6e0dc74eceaf8f63e0d.tar.gz
lwn-93c0eac40d4e3ce4d5a3c6e0dc74eceaf8f63e0d.zip
x86/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE also on 32bit
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE just like we already do on x86-64. After deciphering the PTE layout it becomes clear that there are still unused bits for 2-level and 3-level page tables that we should be able to use. Reusing a bit avoids stealing one bit from the swap offset. While at it, mask the type in __swp_entry(); use some helper definitions to make the macros easier to grasp. Link: https://lkml.kernel.org/r/20230113171026.582290-25-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions