summaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index d1dc618a56bf..1dd588b7c649 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1851,6 +1851,7 @@ static inline bool pgtable_page_ctor(struct page *page)
1851{ 1851{
1852 if (!ptlock_init(page)) 1852 if (!ptlock_init(page))
1853 return false; 1853 return false;
1854 __SetPageTable(page);
1854 inc_zone_page_state(page, NR_PAGETABLE); 1855 inc_zone_page_state(page, NR_PAGETABLE);
1855 return true; 1856 return true;
1856} 1857}
@@ -1858,6 +1859,7 @@ static inline bool pgtable_page_ctor(struct page *page)
1858static inline void pgtable_page_dtor(struct page *page) 1859static inline void pgtable_page_dtor(struct page *page)
1859{ 1860{
1860 pte_lock_deinit(page); 1861 pte_lock_deinit(page);
1862 __ClearPageTable(page);
1861 dec_zone_page_state(page, NR_PAGETABLE); 1863 dec_zone_page_state(page, NR_PAGETABLE);
1862} 1864}
1863 1865