diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index dc3333d6c986..4f4ca41fcf27 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1378,6 +1378,19 @@ static inline void pgtable_page_dtor(struct page *page) | |||
1378 | ((unlikely(pmd_none(*(pmd))) && __pte_alloc_kernel(pmd, address))? \ | 1378 | ((unlikely(pmd_none(*(pmd))) && __pte_alloc_kernel(pmd, address))? \ |
1379 | NULL: pte_offset_kernel(pmd, address)) | 1379 | NULL: pte_offset_kernel(pmd, address)) |
1380 | 1380 | ||
1381 | static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) | ||
1382 | { | ||
1383 | return &mm->page_table_lock; | ||
1384 | } | ||
1385 | |||
1386 | |||
1387 | static inline spinlock_t *pmd_lock(struct mm_struct *mm, pmd_t *pmd) | ||
1388 | { | ||
1389 | spinlock_t *ptl = pmd_lockptr(mm, pmd); | ||
1390 | spin_lock(ptl); | ||
1391 | return ptl; | ||
1392 | } | ||
1393 | |||
1381 | extern void free_area_init(unsigned long * zones_size); | 1394 | extern void free_area_init(unsigned long * zones_size); |
1382 | extern void free_area_init_node(int nid, unsigned long * zones_size, | 1395 | extern void free_area_init_node(int nid, unsigned long * zones_size, |
1383 | unsigned long zone_start_pfn, unsigned long *zholes_size); | 1396 | unsigned long zone_start_pfn, unsigned long *zholes_size); |