Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / hugetlb_inline.h
blob0660a03d37d986c8167dbdb5086acaa96dc17a99
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_HUGETLB_INLINE_H
3 #define _LINUX_HUGETLB_INLINE_H
5 #ifdef CONFIG_HUGETLB_PAGE
7 #include <linux/mm.h>
9 static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
11 return !!(vma->vm_flags & VM_HUGETLB);
14 #else
16 static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
18 return false;
21 #endif
23 #endif