Masami Hiramatsu 9960257281 list.h: add list_is_singular()
Add list_is_singular() to check a list has just one entry.

list_is_singular() is useful to check whether a list_head which have been
temporarily allocated for listing objects can be released or not.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:32 -07:00
..
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:23 -07:00
2008-04-17 10:42:34 -04:00
2008-04-28 08:58:32 -07:00
2008-04-17 11:31:58 +03:00
2008-04-22 15:16:31 -05:00
2008-04-24 23:57:33 +02:00