diff options
author | David Hildenbrand <david@redhat.com> | 2023-01-13 20:10:04 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 09:33:06 +0300 |
commit | 20aae9eff5acd8f50f72adca1176f9269a46b827 (patch) | |
tree | c1e6330fab2b77c927caa120574a19f69fc591e2 /arch/powerpc/configs/pq2fads_defconfig | |
parent | 4a446b3dd335d0bd14a5ca3e563688de3637be0c (diff) | |
download | linux-20aae9eff5acd8f50f72adca1176f9269a46b827.tar.xz |
arm/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by stealing one bit from the
offset. This reduces the maximum swap space per file to 64 GiB (was 128
GiB).
While at it drop the PTE_TYPE_FAULT from __swp_entry_to_pte() which is
defined to be 0 and is rather confusing because we should be dealing with
"Linux PTEs" not "hardware PTEs". Also, properly mask the type in
__swp_entry().
Link: https://lkml.kernel.org/r/20230113171026.582290-5-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/configs/pq2fads_defconfig')
0 files changed, 0 insertions, 0 deletions