Thread (23 messages) 23 messages, 4 authors, 19d ago

Re: [PATCH v2 7/8] arm64: mte: pass the swap entry to mte_save_tags()

From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: 2026-09-09 14:06:59
Also in: linux-arm-kernel, lkml

On 9/8/26 17:16, Tal Zussman wrote:
arch_prepare_to_swap() derives a page from the folio only for
mte_save_tags() to recompute the folio's swap entry from that page.
Pass the entry in directly with folio_swap_entry(), matching
mte_restore_tags(), and move the page_mte_tagged() check into the
caller so we only compute the entry for tagged pages.

__mte_invalidate_tags() loses its only user, so remove it and call
mte_invalidate_tags() directly in the error path. This removes two
calls to compound_head().

No functional change.

Signed-off-by: Tal Zussman <redacted>
---
Acked-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help