HWPOISON, hugetlb: support hwpoison injection for hugepage
[linux-block.git] / include / linux / hugetlb_inline.h
CommitLineData
8edf344c
NH
1#ifndef _LINUX_HUGETLB_INLINE_H
2#define _LINUX_HUGETLB_INLINE_H 1
3
4#ifdef CONFIG_HUGETLBFS
5
6#include <linux/mm.h>
7
8static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
9{
10 return vma->vm_flags & VM_HUGETLB;
11}
12
13#else
14
15static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
16{
17 return 0;
18}
19
20#endif
21
22#endif