sysctl: add and use base directory declarer and registration helper
[linux-block.git] / include / linux / cacheflush.h
CommitLineData
522a0032
MWO
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#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
8#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO
9void flush_dcache_folio(struct folio *folio);
10#endif
11#else
12static inline void flush_dcache_folio(struct folio *folio)
13{
14}
15#define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 0
16#endif /* ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE */
17
18#endif /* _LINUX_CACHEFLUSH_H */