]> www.infradead.org Git - users/hch/misc.git/commitdiff
csky: abiv2: adapt to new folio flags field
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 6 Oct 2025 12:13:37 +0000 (14:13 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 21 Oct 2025 22:46:18 +0000 (15:46 -0700)
Recent changes require the raw folio flags to be accessed via ".f".  The
merge commit introducing this change adapted most architecture code but
forgot the csky abiv2.

[rppt@kernel.org: add fix for arch/csky/abiv2/cacheflush.c]
Link: https://lkml.kernel.org/r/aPCE238oxAB9QcZa@kernel.org
Fixes: 53fbef56e07d ("mm: introduce memdesc_flags_t")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Guo Ren <guoren@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/csky/abiv2/cacheflush.c
arch/csky/abiv2/inc/abi/cacheflush.h

index 876028b1083f93b0447bd6f8c8c3cf10546f569b..064b0f0f95ca54639fb323ec7b780eb29f67da43 100644 (file)
@@ -21,7 +21,7 @@ void update_mmu_cache_range(struct vm_fault *vmf, struct vm_area_struct *vma,
 
        folio = page_folio(pfn_to_page(pfn));
 
-       if (test_and_set_bit(PG_dcache_clean, &folio->flags))
+       if (test_and_set_bit(PG_dcache_clean, &folio->flags.f))
                return;
 
        icache_inv_range(address, address + nr*PAGE_SIZE);
index 6513ac5d257888fbd41385c9263305dfefd18de6..da51a0f02391f7d391ce26a2b11ca82b8c0b6755 100644 (file)
@@ -20,8 +20,8 @@
 
 static inline void flush_dcache_folio(struct folio *folio)
 {
-       if (test_bit(PG_dcache_clean, &folio->flags))
-               clear_bit(PG_dcache_clean, &folio->flags);
+       if (test_bit(PG_dcache_clean, &folio->flags.f))
+               clear_bit(PG_dcache_clean, &folio->flags.f);
 }
 #define flush_dcache_folio flush_dcache_folio