blob: a4e7ca0f3585e4ca33d65dedd3989af26ecd0bfa [file] [log] [blame]
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09001#ifndef _LINUX_HUGETLB_INLINE_H
Naoya Horiguchie3390f62010-06-15 13:18:13 +09002#define _LINUX_HUGETLB_INLINE_H
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09003
Naoya Horiguchie3390f62010-06-15 13:18:13 +09004#ifdef CONFIG_HUGETLB_PAGE
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09005
6#include <linux/mm.h>
7
Yaowei Bai32f62712016-05-19 17:11:23 -07008static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
Naoya Horiguchi8edf3442010-05-28 09:29:15 +09009{
KOSAKI Motohiroca16d142011-05-26 19:16:19 +090010 return !!(vma->vm_flags & VM_HUGETLB);
Naoya Horiguchi8edf3442010-05-28 09:29:15 +090011}
12
13#else
14
Yaowei Bai32f62712016-05-19 17:11:23 -070015static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma)
Naoya Horiguchi8edf3442010-05-28 09:29:15 +090016{
Yaowei Bai32f62712016-05-19 17:11:23 -070017 return false;
Naoya Horiguchi8edf3442010-05-28 09:29:15 +090018}
19
20#endif
21
22#endif