commit | 99602572812442d47403d85f376ad51298dd82a6 | [log] [tgz] |
---|---|---|
author | Masami Hiramatsu <mhiramat@redhat.com> | Mon Apr 28 02:14:27 2008 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Apr 28 08:58:32 2008 -0700 |
tree | 204948267936e9a3f1c430d970c9a68f1583b55d | |
parent | 3d8d996e0ca5b4093203d3f050b0f70b5c949ae8 [diff] |
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>