linux/arch/csky/abiv1
David Hildenbrand 41e0d49104 csky/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 16 GiB (was 32
GiB).

We might actually be able to reuse one of the other software bits
(_PAGE_READ / PAGE_WRITE) instead, because we only have to keep
pte_present(), pte_none() and HW happy.  For now, let's keep it simple
because there might be something non-obvious.

Link: https://lkml.kernel.org/r/20230113171026.582290-6-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Guo Ren <guoren@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-02-02 22:33:06 -08:00
..
inc/abi csky/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE 2023-02-02 22:33:06 -08:00
alignment.c csky: Fix function name in csky_alignment() and die() 2022-01-08 09:43:03 -06:00
bswapdi.c csky: Library functions 2018-10-26 00:54:24 +08:00
bswapsi.c csky: Library functions 2018-10-26 00:54:24 +08:00
cacheflush.c mm: remove flush_kernel_dcache_page 2021-09-03 09:58:13 -07:00
Makefile csky: Add C based string functions 2022-04-18 21:23:55 +08:00
mmap.c csky: Fixup arch_get_unmapped_area() implementation 2019-08-20 16:09:37 +08:00