Skip to contentSkip to conversation

dm-verity: Use message limit for data block corruption message.

PATCH New Milan Broz 1 participant 1 message Jun 20, 2019 Device mapper

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

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.

---
 drivers/md/dm-verity-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-verity-target.c +1 -1
index 720d06531aa3..08f83e160ad5 100644
@@ -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