Skip to content

Commit 9aa1216

Browse files
t-8chakpm00
authored andcommitted
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: 53fbef5 ("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>
1 parent 7eca961 commit 9aa1216

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

arch/csky/abiv2/cacheflush.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void update_mmu_cache_range(struct vm_fault *vmf, struct vm_area_struct *vma,
2121

2222
folio = page_folio(pfn_to_page(pfn));
2323

24-
if (test_and_set_bit(PG_dcache_clean, &folio->flags))
24+
if (test_and_set_bit(PG_dcache_clean, &folio->flags.f))
2525
return;
2626

2727
icache_inv_range(address, address + nr*PAGE_SIZE);

arch/csky/abiv2/inc/abi/cacheflush.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
static inline void flush_dcache_folio(struct folio *folio)
2222
{
23-
if (test_bit(PG_dcache_clean, &folio->flags))
24-
clear_bit(PG_dcache_clean, &folio->flags);
23+
if (test_bit(PG_dcache_clean, &folio->flags.f))
24+
clear_bit(PG_dcache_clean, &folio->flags.f);
2525
}
2626
#define flush_dcache_folio flush_dcache_folio
2727

0 commit comments

Comments
 (0)