fs/reiserfs/journal.c: change return type of dirty_one_transaction
[linux/fpc-iii.git] / arch / sh / include / asm / hugetlb.h
blob6f025fe18146ec14097a5ce9da16bdd93a2b7149
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SH_HUGETLB_H
3 #define _ASM_SH_HUGETLB_H
5 #include <asm/cacheflush.h>
6 #include <asm/page.h>
8 static inline int is_hugepage_only_range(struct mm_struct *mm,
9 unsigned long addr,
10 unsigned long len) {
11 return 0;
15 * If the arch doesn't supply something else, assume that hugepage
16 * size aligned regions are ok without further preparation.
18 #define __HAVE_ARCH_PREPARE_HUGEPAGE_RANGE
19 static inline int prepare_hugepage_range(struct file *file,
20 unsigned long addr, unsigned long len)
22 if (len & ~HPAGE_MASK)
23 return -EINVAL;
24 if (addr & ~HPAGE_MASK)
25 return -EINVAL;
26 return 0;
29 #define __HAVE_ARCH_HUGE_PTEP_CLEAR_FLUSH
30 static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
31 unsigned long addr, pte_t *ptep)
35 static inline void arch_clear_hugepage_flags(struct page *page)
37 clear_bit(PG_dcache_clean, &page->flags);
40 #include <asm-generic/hugetlb.h>
42 #endif /* _ASM_SH_HUGETLB_H */