diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-02 12:32:02 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-08-02 12:32:02 +0100 |
commit | 6c9b27ab08aaf46426515b8b858ad9c60731c7a1 (patch) | |
tree | 4a6acc8a539df7371f1df85376a71029a5c1f4f9 /drivers | |
parent | c8f543e0786785d8c7118fc2878e42bc0193a88d (diff) | |
download | op-kernel-dev-6c9b27ab08aaf46426515b8b858ad9c60731c7a1.zip op-kernel-dev-6c9b27ab08aaf46426515b8b858ad9c60731c7a1.tar.gz |
dm log: userspace use list_move
Replace list_del() followed by list_add() with list_move().
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-log-userspace-base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-log-userspace-base.c b/drivers/md/dm-log-userspace-base.c index aa2e0c3..1021c89 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) |