The patch titled list.h: add list_is_singular() has been removed from the -mm tree. Its filename was listh-add-list_singleton.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: list.h: add list_is_singular() From: Masami Hiramatsu <mhiramat@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/list.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff -puN include/linux/list.h~listh-add-list_singleton include/linux/list.h --- a/include/linux/list.h~listh-add-list_singleton +++ a/include/linux/list.h @@ -319,6 +319,15 @@ static inline int list_empty_careful(con return (next == head) && (next == head->prev); } +/** + * list_is_singular - tests whether a list has just one entry. + * @head: the list to test. + */ +static inline int list_is_singular(const struct list_head *head) +{ + return !list_empty(head) && (head->next == head->prev); +} + static inline void __list_splice(struct list_head *list, struct list_head *head) { _ Patches currently in -mm which might be from mhiramat@xxxxxxxxxx are origin.patch relayfs-support-larger-relay-buffer-take-3.patch relayfs-support-larger-relay-buffer-take-3-cleanup.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html