aboutsummaryrefslogblamecommitdiffstats
path: root/include/linux/hugetlb_inline.h
blob: 6931489a5c14433e57b28493e306d92f8b1d28d4 (plain) (tree)
1
2
3
4
                               
                               
 
                          

















                                                                
#ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H

#ifdef CONFIG_HUGETLB_PAGE

#include <linux/mm.h>

static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
{
	return vma->vm_flags & VM_HUGETLB;
}

#else

static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
{
	return 0;
}

#endif

#endif