mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
a8b9ee7396
commit
a4fc7ab1d0
7 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue