aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/hugetlb_inline.h4
-rw-r--r--mm/rmap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/hugetlb_inline.h b/include/linux/hugetlb_inline.h
index cf00b6df53dc..6931489a5c14 100644
--- a/include/linux/hugetlb_inline.h
+++ b/include/linux/hugetlb_inline.h
@@ -1,7 +1,7 @@
1#ifndef _LINUX_HUGETLB_INLINE_H 1#ifndef _LINUX_HUGETLB_INLINE_H
2#define _LINUX_HUGETLB_INLINE_H 1 2#define _LINUX_HUGETLB_INLINE_H
3 3
4#ifdef CONFIG_HUGETLBFS 4#ifdef CONFIG_HUGETLB_PAGE
5 5
6#include <linux/mm.h> 6#include <linux/mm.h>
7 7
diff --git a/mm/rmap.c b/mm/rmap.c
index 0ad53572eaf2..71bd30a147cf 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1462,7 +1462,7 @@ int rmap_walk(struct page *page, int (*rmap_one)(struct page *,
1462} 1462}
1463#endif /* CONFIG_MIGRATION */ 1463#endif /* CONFIG_MIGRATION */
1464 1464
1465#ifdef CONFIG_HUGETLBFS 1465#ifdef CONFIG_HUGETLB_PAGE
1466/* 1466/*
1467 * The following three functions are for anonymous (private mapped) hugepages. 1467 * The following three functions are for anonymous (private mapped) hugepages.
1468 * Unlike common anonymous pages, anonymous hugepages have no accounting code 1468 * Unlike common anonymous pages, anonymous hugepages have no accounting code
@@ -1503,4 +1503,4 @@ void hugepage_add_new_anon_rmap(struct page *page,
1503 atomic_set(&page->_mapcount, 0); 1503 atomic_set(&page->_mapcount, 0);
1504 __hugepage_set_anon_rmap(page, vma, address, 1); 1504 __hugepage_set_anon_rmap(page, vma, address, 1);
1505} 1505}
1506#endif /* CONFIG_HUGETLBFS */ 1506#endif /* CONFIG_HUGETLB_PAGE */