https://github.com/torvalds/linux
Raw File
Tip revision: cf7d7e5a1980d1116ee152d25dac382b112b9c17 authored by Linus Torvalds on 07 December 2010, 04:09:04 UTC
Linux 2.6.37-rc5
Tip revision: cf7d7e5
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