dm writecache: optimize superblock write
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 24 Feb 2020 09:20:34 +0000 (10:20 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 24 Mar 2020 15:55:09 +0000 (11:55 -0400)
commitdc8a01ae1dbd7bac98368da4d8f81632512429f5
treeb95398da45d5805185902d67c7baa837c0328b7a
parent3923d4854e189d84c6ec22e66d536d3498f2747c
dm writecache: optimize superblock write

If we write a superblock in writecache_flush, we don't need to set bit and
scan the bitmap for it - we can just write the superblock directly. Also,
we can set the flag REQ_FUA on the write bio, so that we don't need to
submit a flush bio afterwards.

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