Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / include / linux / hugetlb_inline.h
diff --git a/kernel/include/linux/hugetlb_inline.h b/kernel/include/linux/hugetlb_inline.h
new file mode 100644 (file)
index 0000000..2bb681f
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef _LINUX_HUGETLB_INLINE_H
+#define _LINUX_HUGETLB_INLINE_H
+
+#ifdef CONFIG_HUGETLB_PAGE
+
+#include <linux/mm.h>
+
+static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
+{
+       return !!(vma->vm_flags & VM_HUGETLB);
+}
+
+#else
+
+static inline int is_vm_hugetlb_page(struct vm_area_struct *vma)
+{
+       return 0;
+}
+
+#endif
+
+#endif