dm-verity: Use message limit for data block corruption message.
PATCH 1/1 dm-verity: Use message limit for data block corruption message.
The dm-verity already uses DMERR_LIMIT on other places, so it should also limit repeated data block corruption messages.
Signed-off-by Milan Broz <[email protected]>
--- drivers/md/dm-verity-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-verity-target.c +1 -1
@@ -235,7 +235,7 @@ static int verity_handle_err(struct dm_verity *v, enum verity_block_type type,BUG (); } -DMERR ("%s: %s block %llu is corrupted" , v->data_dev->name, type_str, +DMERR_LIMIT ("%s: %s block %llu is corrupted" , v->data_dev->name, type_str, block);if (v->corrupted_errs ==DM_VERITY_MAX_CORRUPTED_ERRS )
Signature · 1 line
2.20.1