[PATCH 1/3] sh: use folio_mapped() instead of page_mapped() in sh4_flush_cache_page()

David Hildenbrand (Arm)
2026-04-27T11:43:39Z

We already have the folio in our hands, so let's just use
folio_mapped().

Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
---
arch/sh/mm/cache-sh4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index 83fb34b39ca7..8bc9ce541c14 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -248,7 +248,7 @@ static void sh4_flush_cache_page(void *args)
*/
map_coherent = (current_cpu_data.dcache.n_aliases &&
test_bit(PG_dcache_clean, folio_flags(folio, 0)) &&
- page_mapped(page));
+ folio_mapped(folio));
if (map_coherent)
vaddr = kmap_coherent(page, address);
else

--
2.43.0