Commit | Line | Data |
---|---|---|
8edf344c | 1 | #ifndef _LINUX_HUGETLB_INLINE_H |
e3390f67 | 2 | #define _LINUX_HUGETLB_INLINE_H |
8edf344c | 3 | |
e3390f67 | 4 | #ifdef CONFIG_HUGETLB_PAGE |
8edf344c NH |
5 | |
6 | #include <linux/mm.h> | |
7 | ||
32f6271d | 8 | static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) |
8edf344c | 9 | { |
ca16d140 | 10 | return !!(vma->vm_flags & VM_HUGETLB); |
8edf344c NH |
11 | } |
12 | ||
13 | #else | |
14 | ||
32f6271d | 15 | static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) |
8edf344c | 16 | { |
32f6271d | 17 | return false; |
8edf344c NH |
18 | } |
19 | ||
20 | #endif | |
21 | ||
22 | #endif |