https://github.com/torvalds/linux
Raw File
Tip revision: ebf53826e105f488f4f628703a108e98940d1dc5 authored by Linus Torvalds on 01 February 2011, 03:05:49 UTC
Linux 2.6.38-rc3
Tip revision: ebf5382
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