Commit 9aa12167 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Andrew Morton
Browse files

csky: abiv2: adapt to new folio flags field

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: 53fbef56 ("mm: introduce memdesc_flags_t")
Signed-off-by: default avatarThomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: default avatarMike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: default avatarGuo Ren <guoren@kernel.org>
Acked-by: default avatarZi Yan <ziy@nvidia.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 7eca961d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+2 −2
Original line number Diff line number Diff line
@@ -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