Commit e5d41cbc authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Mike Snitzer

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Fixes: 3923d485 ("dm writecache: implement gradual cleanup")
Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent a7a10bce
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment