From: Mikulas Patocka Date: Tue, 3 Jul 2018 18:13:28 +0000 (+0200) Subject: dm integrity: report provided data sectors in the status X-Git-Tag: v4.19~384^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f84fd2c98480fa0e3c0b43996c4e235bdf4a9527;p=platform%2Fkernel%2Flinux-rpi.git dm integrity: report provided data sectors in the status Signed-off-by: Mikulas Patocka Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 5106652..09dadb7 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -2295,7 +2295,9 @@ static void dm_integrity_status(struct dm_target *ti, status_type_t type, switch (type) { case STATUSTYPE_INFO: - DMEMIT("%llu", (unsigned long long)atomic64_read(&ic->number_of_mismatches)); + DMEMIT("%llu %llu", + (unsigned long long)atomic64_read(&ic->number_of_mismatches), + (unsigned long long)ic->provided_data_sectors); break; case STATUSTYPE_TABLE: {