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)
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>

No differences found