OpenCloudOS-Kernel/arch/csky/abiv1/inc/abi
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
..
cacheflush.h mm: remove flush_kernel_dcache_page 2021-09-03 09:58:13 -07:00
ckmmu.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
elf.h csky: ELF and module probe 2018-10-26 00:54:23 +08:00
entry.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
page.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
pgtable-bits.h csky/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE 2023-02-02 22:33:06 -08:00
reg_ops.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
regdef.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
string.h csky: abiv1: Fixup compile error 2022-07-31 22:39:23 -04:00
switch_context.h csky: Fixup compile error 2021-02-27 22:04:14 +08:00
vdso.h csky: Reconstruct VDSO framework 2021-01-12 09:52:41 +08:00