aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-06-27 05:54:49 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-27 20:32:46 -0400
commitf9b8404cf8f8456dfa83459510762b700dc00385 (patch)
treef74b54c79ee3913d587644195d8af7ba13b6cc2a /include/linux/mm.h
parent6abdce7680e3e8436b3292b345d77b67d5ec9ea8 (diff)
[PATCH] pi-futex: introduce debug_check_no_locks_freed()
Add debug_check_no_locks_freed(), as a central inline to add bad-lock-free-debugging functionality to. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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