1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-18 12:31:11 +00:00
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
..
2023-06-09 17:44:13 -07:00
2024-01-08 10:39:12 +01:00
2024-01-08 10:39:12 +01:00
2025-03-19 10:22:22 +01:00
2024-01-08 10:39:12 +01:00
2024-01-08 10:39:12 +01:00
2024-02-20 13:36:34 +01:00
2024-01-08 10:39:12 +01:00
2023-12-21 15:31:25 +01:00
2024-11-07 14:25:15 -08:00
2024-01-08 10:39:12 +01:00
2024-10-16 00:13:04 +02:00
2024-01-08 10:39:12 +01:00
2024-04-25 20:55:47 -07:00
2024-01-08 10:39:12 +01:00
2025-06-11 14:52:08 -07:00
2023-12-10 17:21:41 -08:00
2025-04-30 20:04:59 +02:00
2023-04-12 15:01:09 +02:00
2023-12-10 17:21:41 -08:00
2024-01-10 18:13:44 -08:00
2024-07-23 09:29:49 +02:00
2024-01-08 10:39:12 +01:00
2023-12-10 17:21:38 -08:00
2024-01-08 10:39:12 +01:00
2024-01-08 10:39:12 +01:00
2024-01-10 18:13:44 -08:00
2023-04-12 15:01:09 +02:00