]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: boost promotion of blocks that will be overwritten
authorJoe Thornber <ejt@redhat.com>
Fri, 15 May 2015 14:29:58 +0000 (15:29 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:07 +0000 (14:19 -0400)
commit6eb8128b052c1d3125f4924297bab0a9513315a8
treed58225e340a166656b916f7542cfbd9c96401222
parent08f0c24498b03f7fde8a5ee0d614fa95ace9d9e5
dm cache: boost promotion of blocks that will be overwritten

When considering whether to move a block to the cache we already give
preferential treatment to discarded blocks, since they are cheap to
promote (no read of the origin required since the data is junk).

The same is true of blocks that are about to be completely
overwritten, so we likewise boost their promotion chances.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c