提交 6c9b27ab 编写于 作者: K Kirill A. Shutemov 提交者: Alasdair G Kergon

dm log: userspace use list_move

Replace list_del() followed by list_add() with list_move().
Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
上级 c8f543e0
...@@ -394,8 +394,7 @@ static int flush_by_group(struct log_c *lc, struct list_head *flush_list) ...@@ -394,8 +394,7 @@ static int flush_by_group(struct log_c *lc, struct list_head *flush_list)
group[count] = fe->region; group[count] = fe->region;
count++; count++;
list_del(&fe->list); list_move(&fe->list, &tmp_list);
list_add(&fe->list, &tmp_list);
type = fe->type; type = fe->type;
if (count >= MAX_FLUSH_GROUP_COUNT) if (count >= MAX_FLUSH_GROUP_COUNT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册