https://github.com/torvalds/linux
Raw File
Tip revision: 8834f5600cf3c8db365e18a3d5cac2c2780c81e5 authored by Linus Torvalds on 03 February 2019, 21:48:04 UTC
Linux 5.0-rc5
Tip revision: 8834f56
hugetlb_inline.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H

#ifdef CONFIG_HUGETLB_PAGE

#include <linux/mm.h>

static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
{
	return !!(vma->vm_flags & VM_HUGETLB);
}

#else

static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
{
	return false;
}

#endif

#endif
back to top