Files
kernel_google_redbull/include/linux/hugetlb_inline.h
Martin Liu c55ae0ef57 Revert "mm: provide speculative fault infrastructure"
This reverts commit 396b980864.
Fix conflict with c76adee347

Reason for revert: remove SPF non upstream code
Bug: 140544941
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I13c399dc6572de1d4cbb1faa81909bc669b962e8
2020-05-30 02:20:33 +08:00

24 lines
374 B
C

/* 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