diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2013-11-14 14:31:20 -0800 |
|---|---|---|
| committer | Ishan Mittal <imittal@nvidia.com> | 2014-04-30 15:04:17 +0530 |
| commit | 17cfe155aed3ec0e735644fe638f6613ed5e8070 (patch) | |
| tree | 5275da32bd649b987c4920094d616ba24c27f655 | |
| parent | 63286dd79b36dcb109f930b9baa732c4f42b7aee (diff) | |
mm: allow pgtable_page_ctor() to fail
Change pgtable_page_ctor() return type from void to bool. Returns true,
if initialization is successful and false otherwise.
Current implementation never fails, but it will change later.
(cherry picked from commit 390f44e2aa2ab83f08231d7d05f066dc3494490e)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index de2a2f2bf708..0b0be4d815dc 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1261,10 +1261,11 @@ static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long a #define pte_lockptr(mm, pmd) ({(void)(pmd); &(mm)->page_table_lock;}) #endif /* USE_SPLIT_PTLOCKS */ -static inline void pgtable_page_ctor(struct page *page) +static inline bool pgtable_page_ctor(struct page *page) { pte_lock_init(page); inc_zone_page_state(page, NR_PAGETABLE); + return true; } static inline void pgtable_page_dtor(struct page *page) |
