Skip to content

Commit 734294e

Browse files
Christoph Hellwigaxboe
authored andcommitted
ext4: 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-10-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent c7dec46 commit 734294e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/ext4/page-io.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,9 @@ static void ext4_end_bio(struct bio *bio)
323323
{
324324
ext4_io_end_t *io_end = bio->bi_private;
325325
sector_t bi_sector = bio->bi_iter.bi_sector;
326-
char b[BDEVNAME_SIZE];
327326

328-
if (WARN_ONCE(!io_end, "io_end is NULL: %s: sector %Lu len %u err %d\n",
329-
bio_devname(bio, b),
327+
if (WARN_ONCE(!io_end, "io_end is NULL: %pg: sector %Lu len %u err %d\n",
328+
bio->bi_bdev,
330329
(long long) bio->bi_iter.bi_sector,
331330
(unsigned) bio_sectors(bio),
332331
bio->bi_status)) {

0 commit comments

Comments
 (0)