]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: implement gradual cleanup
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2020 09:20:33 +0000 (10:20 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 15:55:08 +0000 (11:55 -0400)
commitdb1f2035718b2fba059fb478cd201e1cf4c063a4
tree4366957741c615173d1f3da3e0fb1e3930235eee
parent090592e4b604229e9e6fa19832a04f6d7043e386
dm writecache: implement gradual cleanup

If a block is stored in the cache for too long, it will now be
written to the underlying device and cleaned up.

Add a new option "max_age" that specifies the maximum age of a block
in milliseconds.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c