linux-stable/arch/csky/abiv2/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 csky: Add flush_icache_mm to defer flush icache all 2020-02-21 15:43:24 +08: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
fpu.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: Library functions 2018-10-26 00:54:24 +08: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