[PATCH 1/2] block: downgrade noisy debug calls to verbose debug
Stefan Kerkmann
s.kerkmann at pengutronix.de
Mon Oct 28 09:17:01 PDT 2024
These debug calls are in the hotpath of any block device interaction,
cluttering the log buffer, slowing down reads/writes and are usually not
interesting while debugging, thus they are downgraded to verbose
debugging.
Signed-off-by: Stefan Kerkmann <s.kerkmann at pengutronix.de>
---
common/block.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/block.c b/common/block.c
index 3101fceea7..3ee33f2bf0 100644
--- a/common/block.c
+++ b/common/block.c
@@ -105,7 +105,7 @@ static struct chunk *chunk_get_cached(struct block_device *blk, sector_t block)
list_for_each_entry(chunk, &blk->buffered_blocks, list) {
if (block >= chunk->block_start &&
block < chunk->block_start + blk->rdbufsize) {
- dev_dbg(blk->dev, "%s: found %llu in %d\n", __func__,
+ dev_vdbg(blk->dev, "%s: found %llu in %d\n", __func__,
block, chunk->num);
/*
* move most recently used entry to the head of the list
@@ -175,7 +175,7 @@ static int block_cache(struct block_device *blk, sector_t block)
chunk->block_start = block & ~blk->blkmask;
- dev_dbg(blk->dev, "%s: %llu to %d\n", __func__, chunk->block_start,
+ dev_vdbg(blk->dev, "%s: %llu to %d\n", __func__, chunk->block_start,
chunk->num);
len = writebuffer_io_len(blk, chunk);
--
2.39.5
More information about the barebox
mailing list