summaryrefslogblamecommitdiffstats
path: root/include/linux/hugetlb_inline.h
blob: a4e7ca0f3585e4ca33d65dedd3989af26ecd0bfa (plain) (tree)
1
2
3
4
5
6
7
8
9
                               
                               
 
                          


                     
                                                                 
 
                                              



     
                                                                 
 
                     




      
#ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H

#ifdef CONFIG_HUGETLB_PAGE

#include <linux/mm.h>

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

#else

static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
{
	return false;
}

#endif

#endif