From: Kirill A. Shutemov Date: Tue, 2 Aug 2011 11:32:02 +0000 (+0100) Subject: dm log: userspace use list_move X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c9b27ab08aaf46426515b8b858ad9c60731c7a1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git dm log: userspace use list_move Replace list_del() followed by list_add() with list_move(). Signed-off-by: Kirill A. Shutemov Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-log-userspace-base.c b/drivers/md/dm-log-userspace-base.c index aa2e0c374ab3..1021c8986011 100644 --- a/drivers/md/dm-log-userspace-base.c +++ b/drivers/md/dm-log-userspace-base.c @@ -394,8 +394,7 @@ static int flush_by_group(struct log_c *lc, struct list_head *flush_list) group[count] = fe->region; count++; - list_del(&fe->list); - list_add(&fe->list, &tmp_list); + list_move(&fe->list, &tmp_list); type = fe->type; if (count >= MAX_FLUSH_GROUP_COUNT)