dm writecache: commit just one block, not a full page
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 6 Jun 2021 20:13:16 +0000 (16:13 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 14 Jun 2021 15:45:30 +0000 (11:45 -0400)
commit991bd8d7bc78966b4dc427b53a144f276bffcd52
tree2aa4fcb0d1d5d83b9e63fcfd00b12a792089e5c4
parent620cbe40ed10aebf596767e934ab42057c34ab04
dm writecache: commit just one block, not a full page

Some architectures have pages larger than 4k and committing a full
page causes needless overhead.

Fix this by writing a single block when committing the superblock.

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