https://github.com/torvalds/linux
Raw File
Tip revision: 6887a4131da3adaab011613776d865f4bcfb5678 authored by Linus Torvalds on 30 June 2012, 23:08:57 UTC
Linux 3.5-rc5
Tip revision: 6887a41
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