https://github.com/torvalds/linux
Raw File
Tip revision: 76be97c1fc945db08aae1f1b746012662d643e97 authored by Linus Torvalds on 23 August 2010, 00:43:29 UTC
Linux 2.6.36-rc2
Tip revision: 76be97c
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