linux/arch/powerpc/include/asm/nohash
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
..
32 powerpc updates for 6.12 2024-09-19 08:03:00 +02:00
64 powerpc/nohash: Add _PAGE_WRITE to supplement _PAGE_RW 2023-10-19 17:12:46 +11:00
hugetlb-e500.h powerpc/64s: use contiguous PMD/PUD instead of HUGEPD 2024-07-12 15:52:19 -07:00
kup-booke.h powerpc/kuap: Use ASM feature fixups instead of static branches 2023-08-02 22:22:18 +10:00
mmu-e500.h powerpc/e500: remove enc and ind fields from struct mmu_psize_def 2024-07-12 15:52:17 -07:00
mmu.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
pgalloc.h powerpc/603: Copy kernel PGD entries into all PGDIRs and preallocate execmem page tables 2024-08-30 21:29:54 +10:00
pgtable.h mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
pte-e500.h powerpc/e500: use contiguous PMD instead of hugepd 2024-07-12 15:52:18 -07:00
tlbflush.h