summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2020-11-10 13:44:01 +0100
committerMike Snitzer <snitzer@redhat.com>2020-11-17 16:45:06 +0100
commite5d41cbca1b2036362c9e29d705d3a175a01eff8 (patch)
tree8c622b328bd9ae65bc5db3ae5e95ca6dc4508533 /drivers/md
parentdm integrity: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORY (diff)
downloadlinux-e5d41cbca1b2036362c9e29d705d3a175a01eff8.tar.xz
linux-e5d41cbca1b2036362c9e29d705d3a175a01eff8.zip
dm writecache: advance the number of arguments when reporting max_age
When reporting the "max_age" value the number of arguments must advance by two. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Fixes: 3923d4854e18 ("dm writecache: implement gradual cleanup") Cc: stable@vger.kernel.org # v5.7+ Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-writecache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c
index 9ae4ce7df95c..1ea923af47c6 100644
--- a/drivers/md/dm-writecache.c
+++ b/drivers/md/dm-writecache.c
@@ -2479,6 +2479,8 @@ static void writecache_status(struct dm_target *ti, status_type_t type,
extra_args += 2;
if (wc->autocommit_time_set)
extra_args += 2;
+ if (wc->max_age != MAX_AGE_UNSPECIFIED)
+ extra_args += 2;
if (wc->cleaner)
extra_args++;
if (wc->writeback_fua_set)