2010-05-28 00:29:15 +00:00
|
|
|
#ifndef _LINUX_HUGETLB_INLINE_H
|
2010-06-15 04:18:13 +00:00
|
|
|
#define _LINUX_HUGETLB_INLINE_H
|
2010-05-28 00:29:15 +00:00
|
|
|
|
2010-06-15 04:18:13 +00:00
|
|
|
#ifdef CONFIG_HUGETLB_PAGE
|
2010-05-28 00:29:15 +00:00
|
|
|
|
|
|
|
#include <linux/mm.h>
|
|
|
|
|
|
|
|
static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
|
|
|
|
{
|
2011-05-26 10:16:19 +00:00
|
|
|
return !!(vma->vm_flags & VM_HUGETLB);
|
2010-05-28 00:29:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|