dm writecache: advance the number of arguments when reporting max_age
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 10 Nov 2020 12:44:01 +0000 (07:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 12:22:09 +0000 (13:22 +0100)
commit1b86b92f62480ef244bcb5a40f7a5c7e1021c549
treeb1c715a4ef47b4f846899af784bf99e402cc72c7
parent56306143ef9a4d07f92511a5ac81bbbc8b5c1cae
dm writecache: advance the number of arguments when reporting max_age

commit e5d41cbca1b2036362c9e29d705d3a175a01eff8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-writecache.c