sunxi-linux/include/linux/hugetlb_inline.h

24 lines
374 B
C
Raw Normal View History

2023-06-15 10:00:36 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
2020-11-04 10:33:20 +08:00
#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