aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-10-31 20:13:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:57 -0400
commitfc23af34b00ef444eec088f744983b9ca6c7f5d1 (patch)
tree23af07725c5cb9a185a39efe640d92a968b1708f
parent67220a9ea3eb9cf61de7e384b6bcaaa78f680c9d (diff)
llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
clarify comment Cc: Huang Ying <ying.huang@intel.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/llist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/llist.h b/include/linux/llist.h
index 7287734e08d1..801b44b07aac 100644
--- a/include/linux/llist.h
+++ b/include/linux/llist.h
@@ -148,7 +148,7 @@ static inline struct llist_node *llist_next(struct llist_node *node)
148 * @new: new entry to be added 148 * @new: new entry to be added
149 * @head: the head for your lock-less list 149 * @head: the head for your lock-less list
150 * 150 *
151 * Return whether list is empty before adding. 151 * Returns true if the list was empty prior to adding this entry.
152 */ 152 */
153static inline bool llist_add(struct llist_node *new, struct llist_head *head) 153static inline bool llist_add(struct llist_node *new, struct llist_head *head)
154{ 154{