mirror-linux/arch/arm64
Magnus Lindholm 403d1338a4 mm: pgtable: fix pte_swp_exclusive
Make pte_swp_exclusive return bool instead of int.  This will better
reflect how pte_swp_exclusive is actually used in the code.

This fixes swap/swapoff problems on Alpha due pte_swp_exclusive not
returning correct values when _PAGE_SWP_EXCLUSIVE bit resides in upper
32-bits of PTE (like on alpha).

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
Cc: Sam James <sam@gentoo.org>
Link: https://lore.kernel.org/lkml/20250218175735.19882-2-linmag7@gmail.com/
Link: https://lore.kernel.org/lkml/20250602041118.GA2675383@ZenIV/
[ Applied as the 'sed' script Al suggested   - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-06-11 14:52:08 -07:00
..
boot dmaengine updates for v6.16 2025-06-05 08:49:30 -07:00
configs MFD for v6.16 2025-06-03 11:53:55 -07:00
crypto crypto: arm64/sha256 - Add simd block function 2025-05-05 18:20:45 +08:00
hyperv arm64, x86: hyperv: Report the VTL the system boots in 2025-05-23 16:30:55 +00:00
include mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
kernel Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
kvm hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
lib require gcc-8 and binutils-2.30 2025-05-31 08:16:52 -07:00
mm - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
net bpf-next-6.16 2025-05-28 15:52:42 -07:00
tools Merge branch kvm-arm64/misc-6.16 into kvmarm-master/next 2025-05-23 10:59:43 +01:00
xen xen/arm: call uaccess_ttbr0_enable for dm_op hypercall 2025-05-23 07:10:02 +02:00
Kbuild
Kconfig - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
Kconfig.debug
Kconfig.platforms arm64: Kconfig: switch to HAVE_PWRCTRL 2025-05-23 15:23:18 -05:00
Makefile arm64: drop binutils version checks 2025-04-30 21:55:06 +02:00