mirror-linux/arch/x86
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 - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
coco hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
configs fs: remove uselib() system call 2025-04-21 10:27:59 +02:00
crypto crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
entry Two changes to simplify the x86 vDSO code a bit. 2025-05-26 21:21:12 -07:00
events perf/x86/intel: Fix incorrect MSR index calculations in intel_pmu_config_acr() 2025-05-31 10:05:16 +02:00
hyperv hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
ia32
include mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
kernel A small set of x86 fixes: 2025-06-08 11:27:20 -07:00
kvm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
lib Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
math-emu
mm - The 3 patch series "hung_task: extend blocking task stacktrace dump to 2025-05-31 19:12:53 -07:00
net Merge commit 'its-for-linus-20250509-merge' into x86/core, to resolve conflicts 2025-05-13 10:47:10 +02:00
pci pci-v6.16-changes 2025-06-04 11:26:17 -07:00
platform Merge branch 'x86/msr' into x86/core, to resolve conflicts 2025-05-13 10:42:06 +02:00
power Misc x86 cleanups: kernel-doc updates and a string API transition patch. 2025-05-26 21:15:06 -07:00
purgatory
ras
realmode - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
tools x86/insn: Stop decoding i64 instructions in x86-64 mode at opcode 2025-05-06 12:03:16 +02:00
um Notable changes: 2025-06-05 11:45:33 -07:00
video
virt ARM: 2025-05-29 08:10:01 -07:00
xen x86/xen/msr: Fix uninitialized variable 'err' 2025-05-21 08:44:31 +02:00
.gitignore
Kbuild
Kconfig - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
Kconfig.assembler Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
Kconfig.cpu
Kconfig.cpufeatures x86/mm/64: Make 5-level paging support unconditional 2025-05-17 10:38:16 +02:00
Kconfig.debug
Makefile Add the CONFIG_X86_NATIVE_CPU=y build option to locally optimize the kernel 2025-05-26 21:41:14 -07:00
Makefile.um
Makefile_32.cpu