David Hildenbrand (Arm)
a71638ecc6
sparc/mm: drop custom pte_clear_not_present_full()
...
Patch series "mm: cleanup clear_not_present_full_ptes()", v2.
While doing some review, I stumbled over clear_not_present_full_ptes() and
concluded that it needs some love.
Let's remove pte_clear_not_present_full() and cleanup
clear_not_present_full_ptes(), renaming it to clear_non_present_ptes().
This patch (of 3):
On sparc64, pte_clear_not_present_full() nowadays does a simple
__set_pte_at(). In __set_pte_at() -> maybe_tlb_batch_add(), we check
pte_accessible() to see whether to call tlb_batch_add().
However, non-present PTEs are surely not accessible, so tlb_batch_add() is
never called and the "full" parameter is irrelevant.
Let's drop the helper and just let common code do a pte_clear().
pte_clear() on sparc64 maps to set_pte_at()->set_ptes()->__set_pte_at()
... so it ends up calling the same function, just with "full=0".
Given that "full" is irrelevant, there is no change.
We added pte_clear_not_present_full() for sparc64 in commit 90f08e399d
("sparc: mmu_gather rework"), and I suspect that it was already not
required back then.
Link: https://lore.kernel.org/20260629-clear_not_present_full_ptes-v2-0-96089871a1e7@kernel.org
Link: https://lore.kernel.org/20260629-clear_not_present_full_ptes-v2-1-96089871a1e7@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org >
Reviewed-by: Lance Yang <lance.yang@linux.dev >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Andreas Larsson <andreas@gaisler.com >
Cc: David S. Miller <davem@davemloft.net >
Cc: Jann Horn <jannh@google.com >
Cc: Liam R. Howlett <liam@infradead.org >
Cc: Lorenzo Stoakes <ljs@kernel.org >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Mike Rapoport <rppt@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@kernel.org >
Cc: Oscar Salvador (SUSE) <osalvador@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2026-07-28 21:12:09 -07:00
..
2026-03-11 10:18:33 +01:00
2025-09-26 17:06:09 +02:00
2018-03-18 07:38:46 -07:00
2017-11-02 11:10:55 +01:00
2026-06-15 10:06:07 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-06-05 09:57:17 +02:00
2023-06-05 09:57:17 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2020-07-21 18:22:02 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-06-30 19:52:41 -07:00
2025-09-08 14:58:52 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2020-10-25 14:51:49 -07:00
2023-12-14 00:23:17 -08:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2024-02-22 15:27:19 -08:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2017-11-02 11:10:55 +01:00
2026-03-11 10:18:32 +01:00
2024-04-09 22:06:00 -07:00
2023-07-13 09:54:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-04-26 13:35:54 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2023-02-15 12:35:20 +01:00
2022-07-22 17:24:47 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-19 20:23:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-03 20:05:18 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-08-25 14:46:42 -06:00
2025-10-04 10:59:06 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2020-03-27 23:58:52 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-14 11:25:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-24 10:34:52 -08:00
2025-07-24 19:12:31 -07:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-05 09:44:41 +01:00
2025-09-19 20:55:34 +02:00
2020-06-09 09:39:13 -07:00
2022-09-08 16:49:14 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-09 06:54:27 +02:00
2018-05-09 06:54:27 +02:00
2017-11-02 11:10:55 +01:00
2023-06-09 17:44:16 -07:00
2023-08-18 10:19:00 -07:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2026-05-21 08:20:58 -04:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-11-10 19:59:05 +09:00
2024-02-16 16:50:25 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2024-09-03 21:15:28 -07:00
2025-09-26 17:06:09 +02:00
2023-06-19 16:25:29 -07:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-05-05 18:20:43 +08:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2024-07-11 15:58:28 +02:00
2017-11-02 11:10:55 +01:00
2026-06-12 13:57:06 +02:00
2026-01-20 19:24:39 -08:00
2024-10-28 21:44:28 +00:00
2025-09-26 17:26:43 +02:00
2024-03-08 21:21:00 +01:00
2017-11-02 11:10:55 +01:00
2022-08-04 11:46:53 -05:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:03 -07:00
2023-08-18 10:12:24 -07:00
2017-11-02 11:10:55 +01:00
2026-04-05 13:53:01 -07:00
2026-07-28 21:12:09 -07:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2026-03-11 10:18:32 +01:00
2026-03-11 10:18:32 +01:00
2026-03-11 10:18:32 +01:00
2023-04-10 18:32:31 -05:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2026-04-05 13:53:01 -07:00
2017-11-02 11:10:55 +01:00
2014-05-18 19:01:28 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:57 -07:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2020-03-25 10:19:43 +09:00
2020-03-25 10:19:43 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2024-02-16 16:50:25 +01:00
2017-11-02 11:10:55 +01:00
2025-05-11 17:48:15 -07:00
2026-02-06 15:03:43 +01:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2023-06-09 17:44:16 -07:00
2017-11-02 11:10:55 +01:00
2022-05-13 23:59:23 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-03 10:32:54 +02:00
2026-02-06 15:47:19 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2026-01-20 19:24:35 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2017-11-02 11:10:55 +01:00
2025-09-26 17:06:09 +02:00
2025-09-26 17:06:09 +02:00
2026-05-28 21:24:44 -07:00
2026-05-28 21:24:44 -07:00
2022-02-25 09:36:05 +01:00
2026-02-06 15:03:43 +01:00
2025-09-26 17:06:09 +02:00
2019-05-21 11:28:45 +02:00
2025-09-26 17:06:09 +02:00
2026-03-11 10:18:32 +01:00
2025-09-10 09:35:33 -05:00
2025-09-26 17:06:09 +02:00
2024-07-03 15:16:54 +02:00
2025-09-26 17:06:09 +02:00
2019-12-10 10:12:55 +01:00
2017-11-02 11:10:55 +01:00