linux-loongson/arch/microblaze/include/asm
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
..
asm-compat.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
asm-offsets.h
barrier.h microblaze: Define microblaze barrier 2020-02-25 12:33:19 +01:00
cache.h microblaze: move the ARCH_{DMA,SLAB}_MINALIGN definitions to asm/cache.h 2023-06-19 16:19:24 -07:00
cacheflush.h microblaze: implement the new page table range API 2023-08-24 16:20:21 -07:00
checksum.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
cpuinfo.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
current.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
delay.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
dma.h PCI: Move isa_dma_bridge_buggy out of asm/dma.h 2022-07-22 17:24:47 -05:00
elf.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
entry.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
exceptions.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
fixmap.h microblaze/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
flat.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ftrace.h arch: add missing prepare_ftrace_return() prototypes 2023-11-23 11:32:32 +01:00
futex.h futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
hash.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
highmem.h microblaze/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
io.h arch/*/: remove CONFIG_VIRT_TO_BUS 2022-06-28 13:20:21 +02:00
irq.h irqchip/xilinx: Switch to GENERIC_IRQ_MULTI_HANDLER 2022-03-04 14:32:57 +00:00
irqflags.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
Kbuild asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
kgdb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmu_context_mm.h microblaze: use asm-generic/mmu_context.h for no-op implementations 2020-10-27 16:02:36 +01:00
mmu_context.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
mmu.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
module.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
page.h asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
pci-bridge.h microblaze/PCI: Remove support for Xilinx PCI host bridge 2022-11-25 11:39:23 +01:00
pci.h microblaze/PCI: Remove support for Xilinx PCI host bridge 2022-11-25 11:39:23 +01:00
pgalloc.h asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
pgtable.h mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
processor.h kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
ptrace.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
pvr.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
registers.h microblaze: Remove noMMU code 2020-11-26 16:39:35 +01:00
seccomp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sections.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
setup.h microblaze: Remove zalloc_maybe_bootmem() 2023-08-23 09:35:22 +02:00
string.h microblaze: Use simple memmove/memcpy implementation from lib/string.c 2022-04-21 10:54:21 +02:00
switch_to.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
syscall.h syscall.h: introduce syscall_set_nr() 2025-05-11 17:48:15 -07:00
thread_info.h uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
timex.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
tlbflush.h microblaze: implement the new page table range API 2023-08-24 16:20:21 -07:00
uaccess.h uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
unistd.h microblaze: Convert headers to SPDX license 2020-02-25 12:33:19 +01:00
unwind.h microblaze: add loglvl to microblaze_unwind() 2020-06-09 09:39:11 -07:00
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
xilinx_mb_manager.h microblaze: Add support for error injection 2022-09-26 14:13:29 +02:00