dm writecache: further writecache_map() cleanup
authorMike Snitzer <snitzer@redhat.com>
Tue, 13 Jul 2021 01:21:34 +0000 (21:21 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 10 Aug 2021 17:27:48 +0000 (13:27 -0400)
commit15cb6f39dbaf391dd3b70389c2882df998d5189a
tree512e2177fb4aa290ec50ba511d96a7e5b7b80998
parent4d020b3a290707b19a3974fe8bc356f0b01b6928
dm writecache: further writecache_map() cleanup

Factor out writecache_map_flush() and writecache_map_discard() from
writecache_map(). Also eliminate the various goto labels in
writecache_map().

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