https://github.com/torvalds/linux
Raw File
Tip revision: 192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d authored by Linus Torvalds on 04 March 2012, 01:08:09 UTC
Linux 3.3-rc6
Tip revision: 192cfd5
hugetlb_inline.h
#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
back to top