HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/src/linux-headers-7.0.0-1009-aws/include/linux/hugetlb_inline.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H

#include <linux/mm.h>

#ifdef CONFIG_HUGETLB_PAGE

static inline bool is_vma_hugetlb_flags(const vma_flags_t *flags)
{
	return vma_flags_test(flags, VMA_HUGETLB_BIT);
}

#else

static inline bool is_vma_hugetlb_flags(const vma_flags_t *flags)
{
	return false;
}

#endif

static inline bool is_vm_hugetlb_page(const struct vm_area_struct *vma)
{
	return is_vma_hugetlb_flags(&vma->flags);
}

#endif