https://github.com/torvalds/linux
Raw File
Tip revision: eeac8ede17557680855031c6f305ece2378af326 authored by Linus Torvalds on 12 March 2023, 23:36:44 UTC
Linux 6.3-rc2
Tip revision: eeac8ed
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