https://github.com/torvalds/linux
Raw File
Tip revision: f0e615c3cb72b42191b558c130409335812621d8 authored by Linus Torvalds on 19 April 2011, 04:26:00 UTC
Linux 2.6.39-rc4
Tip revision: f0e615c
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