]> git.itanic.dy.fi Git - linux-stable/commit
dm writecache: do direct write if the cache is full
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2020 09:20:31 +0000 (10:20 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 15:26:18 +0000 (11:26 -0400)
commitd53f1fafec9d086f1c5166436abefdaef30e0363
treed876e8292420f04d2c38ebf5defa92683fdcf982
parenteaab4bde6e645a37febba9a4126dc71e5994e3a1
dm writecache: do direct write if the cache is full

If the cache device is full, we do a direct write to the origin device.
Note that we must not do it if the written block is already in the cache.

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