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