mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
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: 3923d4854e
("dm writecache: implement gradual cleanup")
Cc: stable@vger.kernel.org # v5.7+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
a7a10bce8a
commit
e5d41cbca1
1 changed files with 2 additions and 0 deletions
|
@ -2479,6 +2479,8 @@ static void writecache_status(struct dm_target *ti, status_type_t type,
|
||||||
extra_args += 2;
|
extra_args += 2;
|
||||||
if (wc->autocommit_time_set)
|
if (wc->autocommit_time_set)
|
||||||
extra_args += 2;
|
extra_args += 2;
|
||||||
|
if (wc->max_age != MAX_AGE_UNSPECIFIED)
|
||||||
|
extra_args += 2;
|
||||||
if (wc->cleaner)
|
if (wc->cleaner)
|
||||||
extra_args++;
|
extra_args++;
|
||||||
if (wc->writeback_fua_set)
|
if (wc->writeback_fua_set)
|
||||||
|
|
Loading…
Reference in a new issue