diff --git a/include/linux/mm.h b/include/linux/mm.h index fa08f3cf0f22ebab5995b3c04fca719cb0442fb7..3c258f8eb9ae76017124af4892cb1305634006c2 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1606,8 +1606,10 @@ static inline void pgtable_init(void) static inline bool pgtable_page_ctor(struct page *page) { + if (!ptlock_init(page)) + return false; inc_zone_page_state(page, NR_PAGETABLE); - return ptlock_init(page); + return true; } static inline void pgtable_page_dtor(struct page *page)