diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hugetlb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index f6505ad86657..176e7ee73eff 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -112,12 +112,19 @@ static inline void hugetlb_report_meminfo(struct seq_file *m) | |||
| 112 | 112 | ||
| 113 | #endif /* !CONFIG_HUGETLB_PAGE */ | 113 | #endif /* !CONFIG_HUGETLB_PAGE */ |
| 114 | 114 | ||
| 115 | #define HUGETLB_ANON_FILE "anon_hugepage" | ||
| 116 | |||
| 115 | enum { | 117 | enum { |
| 116 | /* | 118 | /* |
| 117 | * The file will be used as an shm file so shmfs accounting rules | 119 | * The file will be used as an shm file so shmfs accounting rules |
| 118 | * apply | 120 | * apply |
| 119 | */ | 121 | */ |
| 120 | HUGETLB_SHMFS_INODE = 1, | 122 | HUGETLB_SHMFS_INODE = 1, |
| 123 | /* | ||
| 124 | * The file is being created on the internal vfs mount and shmfs | ||
| 125 | * accounting rules do not apply | ||
| 126 | */ | ||
| 127 | HUGETLB_ANONHUGE_INODE = 2, | ||
| 121 | }; | 128 | }; |
| 122 | 129 | ||
| 123 | #ifdef CONFIG_HUGETLBFS | 130 | #ifdef CONFIG_HUGETLBFS |
