https://github.com/torvalds/linux
Raw File
Tip revision: b04e217704b7f879c6b91222b066983a44a7a09f authored by Linus Torvalds on 27 May 2018, 20:01:47 UTC
Linux 4.17-rc7
Tip revision: b04e217
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