aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index cb1b3a7ecdfc..89e6286a7f57 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -120,6 +120,7 @@ static void free_huge_page(struct page *page)
120 struct address_space *mapping; 120 struct address_space *mapping;
121 121
122 mapping = (struct address_space *) page_private(page); 122 mapping = (struct address_space *) page_private(page);
123 set_page_private(page, 0);
123 BUG_ON(page_count(page)); 124 BUG_ON(page_count(page));
124 INIT_LIST_HEAD(&page->lru); 125 INIT_LIST_HEAD(&page->lru);
125 126
@@ -134,7 +135,6 @@ static void free_huge_page(struct page *page)
134 spin_unlock(&hugetlb_lock); 135 spin_unlock(&hugetlb_lock);
135 if (mapping) 136 if (mapping)
136 hugetlb_put_quota(mapping, 1); 137 hugetlb_put_quota(mapping, 1);
137 set_page_private(page, 0);
138} 138}
139 139
140/* 140/*