dm-integrity: stop using bio_devname
Use the %pg format specifier to save on stack consuption and code size. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220304180105.409765-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
6667171965
commit
0a806cfde8
1 changed files with 2 additions and 3 deletions
|
@ -1788,12 +1788,11 @@ again:
|
||||||
checksums_ptr - checksums, dio->op == REQ_OP_READ ? TAG_CMP : TAG_WRITE);
|
checksums_ptr - checksums, dio->op == REQ_OP_READ ? TAG_CMP : TAG_WRITE);
|
||||||
if (unlikely(r)) {
|
if (unlikely(r)) {
|
||||||
if (r > 0) {
|
if (r > 0) {
|
||||||
char b[BDEVNAME_SIZE];
|
|
||||||
sector_t s;
|
sector_t s;
|
||||||
|
|
||||||
s = sector - ((r + ic->tag_size - 1) / ic->tag_size);
|
s = sector - ((r + ic->tag_size - 1) / ic->tag_size);
|
||||||
DMERR_LIMIT("%s: Checksum failed at sector 0x%llx",
|
DMERR_LIMIT("%pg: Checksum failed at sector 0x%llx",
|
||||||
bio_devname(bio, b), s);
|
bio->bi_bdev, s);
|
||||||
r = -EILSEQ;
|
r = -EILSEQ;
|
||||||
atomic64_inc(&ic->number_of_mismatches);
|
atomic64_inc(&ic->number_of_mismatches);
|
||||||
dm_audit_log_bio(DM_MSG_PREFIX, "integrity-checksum",
|
dm_audit_log_bio(DM_MSG_PREFIX, "integrity-checksum",
|
||||||
|
|
Loading…
Add table
Reference in a new issue