aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ff1fa87df8d0..0ac255720f34 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1030,13 +1030,19 @@ static inline void vm_stat_account(struct mm_struct *mm,
1030} 1030}
1031#endif /* CONFIG_PROC_FS */ 1031#endif /* CONFIG_PROC_FS */
1032 1032
1033static inline void
1034debug_check_no_locks_freed(const void *from, unsigned long len)
1035{
1036 mutex_debug_check_no_locks_freed(from, len);
1037}
1038
1033#ifndef CONFIG_DEBUG_PAGEALLOC 1039#ifndef CONFIG_DEBUG_PAGEALLOC
1034static inline void 1040static inline void
1035kernel_map_pages(struct page *page, int numpages, int enable) 1041kernel_map_pages(struct page *page, int numpages, int enable)
1036{ 1042{
1037 if (!PageHighMem(page) && !enable) 1043 if (!PageHighMem(page) && !enable)
1038 mutex_debug_check_no_locks_freed(page_address(page), 1044 debug_check_no_locks_freed(page_address(page),
1039 numpages * PAGE_SIZE); 1045 numpages * PAGE_SIZE);
1040} 1046}
1041#endif 1047#endif
1042 1048