Debian Codegraph @

arch/sh/include/asm/hugetlb.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SH_HUGETLB_H
3 #define _ASM_SH_HUGETLB_H
4
5 #include <asm/cacheflush.h>
6 #include <asm/page.h>
7
8 #define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH
9 static inline pte_t huge_ptep_clear_flush(struct vm_area_struct *vma,
10 unsigned long addr, pte_t *ptep)
11 {
12 return *ptep;
13 }
14
15 static inline void arch_clear_hugetlb_flags(struct folio *folio)
16 {
17 clear_bit(PG_dcache_clean, &folio->flags.f);
18 }
19 #define arch_clear_hugetlb_flags arch_clear_hugetlb_flags
20
21 #include <asm-generic/hugetlb.h>
22
23 #endif /* _ASM_SH_HUGETLB_H */