diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-12-16 17:06:33 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-10-18 13:49:36 +0200 |
commit | 08b0b0059bf1c2e8637f724cc7cc4d29b1e808de (patch) | |
tree | 795315583bdbd72e41a2509662d48f377d477893 /arch/nios2 | |
parent | mm: Add folio_raw_mapping() (diff) | |
download | linux-08b0b0059bf1c2e8637f724cc7cc4d29b1e808de.tar.xz linux-08b0b0059bf1c2e8637f724cc7cc4d29b1e808de.zip |
mm: Add flush_dcache_folio()
This is a default implementation which calls flush_dcache_page() on
each page in the folio. If architectures can do better, they should
implement their own version of it.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'arch/nios2')
-rw-r--r-- | arch/nios2/include/asm/cacheflush.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/cacheflush.h b/arch/nios2/include/asm/cacheflush.h index 18eb9f69f806..1999561b22aa 100644 --- a/arch/nios2/include/asm/cacheflush.h +++ b/arch/nios2/include/asm/cacheflush.h @@ -28,7 +28,8 @@ extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start, extern void flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long pfn); #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 -extern void flush_dcache_page(struct page *page); +void flush_dcache_page(struct page *page); +void flush_dcache_folio(struct folio *folio); extern void flush_icache_range(unsigned long start, unsigned long end); extern void flush_icache_page(struct vm_area_struct *vma, struct page *page); |