diff --git a/[refs] b/[refs] index c1aba75577bd..fc9b71cacad5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 889ff0150661512d79484219612b7e2e024b6c07 +refs/heads/master: 5908cdc85eb30f8d07f2cb11d4a62334d7229048 diff --git a/trunk/include/linux/list.h b/trunk/include/linux/list.h index 969f6e92d089..5d9c6558e8ab 100644 --- a/trunk/include/linux/list.h +++ b/trunk/include/linux/list.h @@ -205,6 +205,20 @@ static inline int list_empty_careful(const struct list_head *head) return (next == head) && (next == head->prev); } +/** + * list_rotate_left - rotate the list to the left + * @head: the head of the list + */ +static inline void list_rotate_left(struct list_head *head) +{ + struct list_head *first; + + if (!list_empty(head)) { + first = head->next; + list_move_tail(first, head); + } +} + /** * list_is_singular - tests whether a list has just one entry. * @head: the list to test.