Expand CONFIG_DEBUG_LIST to several other list operations
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 Feb 2011 19:32:28 +0000 (11:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 Feb 2011 19:32:28 +0000 (11:32 -0800)
commit3c18d4de86e4a7f93815c081e50e0543fa27200f
treeadea22bccd076266bf94cbda3ed6d9a98eea1206
parent2a324ce7b79a3a90cc2d4ade5d5f960a99000caa
Expand CONFIG_DEBUG_LIST to several other list operations

When list debugging is enabled, we aim to readably show list corruption
errors, and the basic list_add/list_del operations end up having extra
debugging code in them to do some basic validation of the list entries.

However, "list_del_init()" and "list_move[_tail]()" ended up avoiding
the debug code due to how they were written. This fixes that.

So the _next_ time we have list_move() problems with stale list entries,
we'll hopefully have an easier time finding them..

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/list.h
lib/list_debug.c