dm writecache: return the exact table values that were set
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 4 Feb 2021 10:20:52 +0000 (05:20 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 8 Feb 2021 16:32:54 +0000 (11:32 -0500)
commit054bee16163df023e2589db09fd27d81f7ad9e72
tree612cdeeca910f7af0c7302644bb566013eb1ddb1
parent363880c4eb36bd2a70104c165fbc7a6d49858a91
dm writecache: return the exact table values that were set

LVM doesn't like it when the target returns different values from what
was set in the constructor. Fix dm-writecache so that the returned
table values are exactly the same as requested values.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c