aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/mm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 255750d9b1be..e855351c3361 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1338,10 +1338,11 @@ static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long a
1338#define pte_lockptr(mm, pmd) ({(void)(pmd); &(mm)->page_table_lock;}) 1338#define pte_lockptr(mm, pmd) ({(void)(pmd); &(mm)->page_table_lock;})
1339#endif /* USE_SPLIT_PTE_PTLOCKS */ 1339#endif /* USE_SPLIT_PTE_PTLOCKS */
1340 1340
1341static inline void pgtable_page_ctor(struct page *page) 1341static inline bool pgtable_page_ctor(struct page *page)
1342{ 1342{
1343 pte_lock_init(page); 1343 pte_lock_init(page);
1344 inc_zone_page_state(page, NR_PAGETABLE); 1344 inc_zone_page_state(page, NR_PAGETABLE);
1345 return true;
1345} 1346}
1346 1347
1347static inline void pgtable_page_dtor(struct page *page) 1348static inline void pgtable_page_dtor(struct page *page)