diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-11-05 17:07:09 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-11-05 17:40:27 +1100 |
commit | 814c16b9cb5016835a7c95e7ca602e3e7285ad7d (patch) | |
tree | cc86cc246971dbb468c74681ae04ebe98f359442 /drivers | |
parent | ec90ec93b15b10bd8607410e65e2acb7de5ddb3e (diff) |
llists: move llist_reverse_order from raid5 to llist.c
Make this useful helper available for other users.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 0a180cdf8458..28c2916d5b95 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -374,20 +374,6 @@ static void release_inactive_stripe_list(struct r5conf *conf, } } -static struct llist_node *llist_reverse_order(struct llist_node *head) -{ - struct llist_node *new_head = NULL; - - while (head) { - struct llist_node *tmp = head; - head = head->next; - tmp->next = new_head; - new_head = tmp; - } - - return new_head; -} - /* should hold conf->device_lock already */ static int release_stripe_list(struct r5conf *conf, struct list_head *temp_inactive_list) |