Merge tag 'xfs-6.4-rc1-fixes' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-block.git] / include / linux / cacheflush.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_CACHEFLUSH_H
3 #define _LINUX_CACHEFLUSH_H
4
5 #include <asm/cacheflush.h>
6
7 struct folio;
8
9 #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
10 #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
11 void flush_dcache_folio(struct folio *folio);
12 #endif
13 #else
14 static inline void flush_dcache_folio(struct folio *folio)
15 {
16 }
17 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0
18 #endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
19
20 #endif /* _LINUX_CACHEFLUSH_H */