]> git.baikalelectronics.ru Git - kernel.git/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)
commitddc3906a95f9b90f3714539fd7e94a391345c1ac
treed876e8292420f04d2c38ebf5defa92683fdcf982
parent82ed9fd3fa49a4cb4a3f7090ede183621becfe6c
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