]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/linux/hugetlb_inline.h
Merge tag 'for-linus-4.11b-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / include / linux / hugetlb_inline.h
1 #ifndef _LINUX_HUGETLB_INLINE_H
2 #define _LINUX_HUGETLB_INLINE_H
3
4 #ifdef CONFIG_HUGETLB_PAGE
5
6 #include <linux/mm.h>
7
8 static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
9 {
10         return !!(vma->vm_flags & VM_HUGETLB);
11 }
12
13 #else
14
15 static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
16 {
17         return false;
18 }
19
20 #endif
21
22 #endif