blob: 6931489a5c14433e57b28493e306d92f8b1d28d4 [file] [log] [blame]
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09001#ifndef _LINUX_HUGETLB_INLINE_H
Naoya Horiguchie3390f62010-06-15 13:18:13 +09002#define _LINUX_HUGETLB_INLINE_H
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09003
Naoya Horiguchie3390f62010-06-15 13:18:13 +09004#ifdef CONFIG_HUGETLB_PAGE
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09005
6#include <linux/mm.h>
7
8static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
9{
10 return vma->vm_flags & VM_HUGETLB;
11}
12
13#else
14
15static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
16{
17 return 0;
18}
19
20#endif
21
22#endif