Skip to content

Commit e5d41cb

Browse files
Mikulas Patockasnitm
authored andcommitted
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: 3923d48 ("dm writecache: implement gradual cleanup") Cc: stable@vger.kernel.org # v5.7+ Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent a7a10bc commit e5d41cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/md/dm-writecache.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,8 @@ static void writecache_status(struct dm_target *ti, status_type_t type,
24792479
extra_args += 2;
24802480
if (wc->autocommit_time_set)
24812481
extra_args += 2;
2482+
if (wc->max_age != MAX_AGE_UNSPECIFIED)
2483+
extra_args += 2;
24822484
if (wc->cleaner)
24832485
extra_args++;
24842486
if (wc->writeback_fua_set)

0 commit comments

Comments
 (0)