mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									c7dec4623c
								
							
						
					
					
						commit
						734294e47a
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -323,10 +323,9 @@ static void ext4_end_bio(struct bio *bio) | ||||||
| { | { | ||||||
| 	ext4_io_end_t *io_end = bio->bi_private; | 	ext4_io_end_t *io_end = bio->bi_private; | ||||||
| 	sector_t bi_sector = bio->bi_iter.bi_sector; | 	sector_t bi_sector = bio->bi_iter.bi_sector; | ||||||
| 	char b[BDEVNAME_SIZE]; |  | ||||||
| 
 | 
 | ||||||
| 	if (WARN_ONCE(!io_end, "io_end is NULL: %s: sector %Lu len %u err %d\n", | 	if (WARN_ONCE(!io_end, "io_end is NULL: %pg: sector %Lu len %u err %d\n", | ||||||
| 		      bio_devname(bio, b), | 		      bio->bi_bdev, | ||||||
| 		      (long long) bio->bi_iter.bi_sector, | 		      (long long) bio->bi_iter.bi_sector, | ||||||
| 		      (unsigned) bio_sectors(bio), | 		      (unsigned) bio_sectors(bio), | ||||||
| 		      bio->bi_status)) { | 		      bio->bi_status)) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christoph Hellwig
						Christoph Hellwig