aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm-bufio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c
index cc06a1e52423..b9e006aa6062 100644
--- a/drivers/md/dm-bufio.c
+++ b/drivers/md/dm-bufio.c
@@ -441,8 +441,7 @@ static void __relink_lru(struct dm_buffer *b, int dirty)
441 c->n_buffers[b->list_mode]--; 441 c->n_buffers[b->list_mode]--;
442 c->n_buffers[dirty]++; 442 c->n_buffers[dirty]++;
443 b->list_mode = dirty; 443 b->list_mode = dirty;
444 list_del(&b->lru_list); 444 list_move(&b->lru_list, &c->lru[dirty]);
445 list_add(&b->lru_list, &c->lru[dirty]);
446} 445}
447 446
448/*---------------------------------------------------------------- 447/*----------------------------------------------------------------