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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:50 +0000 (09:44 +0200)
commitad7083a95d8ac29acdca83942997dd4014c4149d
tree8ba60a91206a75da9b9631a94ec8e9a88675873c
parent57f7ed25bd1672a51c2d9cd15c9714c0dfc56062
dm writecache: commit just one block, not a full page

[ Upstream commit 991bd8d7bc78966b4dc427b53a144f276bffcd52 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-writecache.c