1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 28edf344cSNaoya Horiguchi #ifndef _LINUX_HUGETLB_INLINE_H 3e3390f67SNaoya Horiguchi #define _LINUX_HUGETLB_INLINE_H 48edf344cSNaoya Horiguchi 5e3390f67SNaoya Horiguchi #ifdef CONFIG_HUGETLB_PAGE 68edf344cSNaoya Horiguchi 78edf344cSNaoya Horiguchi #include <linux/mm.h> 88edf344cSNaoya Horiguchi is_vm_hugetlb_page(struct vm_area_struct * vma)932f6271dSYaowei Baistatic inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) 108edf344cSNaoya Horiguchi { 11ca16d140SKOSAKI Motohiro return !!(vma->vm_flags & VM_HUGETLB); 128edf344cSNaoya Horiguchi } 138edf344cSNaoya Horiguchi 148edf344cSNaoya Horiguchi #else 158edf344cSNaoya Horiguchi is_vm_hugetlb_page(struct vm_area_struct * vma)1632f6271dSYaowei Baistatic inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) 178edf344cSNaoya Horiguchi { 1832f6271dSYaowei Bai return false; 198edf344cSNaoya Horiguchi } 208edf344cSNaoya Horiguchi 218edf344cSNaoya Horiguchi #endif 228edf344cSNaoya Horiguchi 238edf344cSNaoya Horiguchi #endif 24