[PATCH] fix/simplify mutex debugging code

Let's switch mutex_debug_check_no_locks_freed() to take (addr, len) as
arguments instead, since all its callers were just calculating the 'to'
address for themselves anyway... (and sometimes doing so badly).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
David Woodhouse 2006-01-11 14:41:26 +00:00 committed by Linus Torvalds
parent a8b9ee7396
commit a4fc7ab1d0
7 changed files with 9 additions and 8 deletions

View file

@ -1027,7 +1027,7 @@ kernel_map_pages(struct page *page, int numpages, int enable)
{
if (!PageHighMem(page) && !enable)
mutex_debug_check_no_locks_freed(page_address(page),
page_address(page + numpages));
numpages * PAGE_SIZE);
}
#endif