Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c9b27ab authored by Kirill A. Shutemov's avatar Kirill A. Shutemov Committed by Alasdair G Kergon
Browse files

dm log: userspace use list_move



Replace list_del() followed by list_add() with list_move().

Signed-off-by: default avatarKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent c8f543e0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)