| .. | .. |
|---|
| 10 | 10 | * |
|---|
| 11 | 11 | * Defined in such a way that we can optimize away code block at build time |
|---|
| 12 | 12 | * if CONFIG_HUGETLB_PAGE=n. |
|---|
| 13 | + * |
|---|
| 14 | + * returns true for pmd migration entries, THP, devmap, hugetlb |
|---|
| 15 | + * But compile time dependent on CONFIG_HUGETLB_PAGE |
|---|
| 13 | 16 | */ |
|---|
| 14 | 17 | static inline int pmd_huge(pmd_t pmd) |
|---|
| 15 | 18 | { |
|---|
| .. | .. |
|---|
| 56 | 59 | BUG(); |
|---|
| 57 | 60 | } |
|---|
| 58 | 61 | |
|---|
| 59 | | -#else /* !CONFIG_HUGETLB_PAGE */ |
|---|
| 60 | | -static inline int pmd_huge(pmd_t pmd) { return 0; } |
|---|
| 61 | | -static inline int pud_huge(pud_t pud) { return 0; } |
|---|
| 62 | 62 | #endif /* CONFIG_HUGETLB_PAGE */ |
|---|
| 63 | 63 | |
|---|
| 64 | 64 | static inline int remap_4k_pfn(struct vm_area_struct *vma, unsigned long addr, |
|---|