linux/arch/powerpc/include/asm/book3s/32
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
..
kup.h powerpc/kuap: Use ASM feature fixups instead of static branches 2023-08-02 22:22:18 +10:00
mmu-hash.h powerpc/32s: Fix kasan_init_region() for KASAN 2022-01-16 20:51:05 +11:00
pgalloc.h powerpc/mm: allow hugepages without hugepd 2024-07-12 15:52:16 -07:00
pgtable.h mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
tlbflush.h powerpc/32s: Implement local_flush_tlb_page_psize() 2023-10-23 20:33:19 +11:00