vsprintf: use bd_partno in bdev_name
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:41:04 +0000 (07:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:58 +0000 (08:18 -0600)
commit700cd59db518edc2028df7c830d6cb6f7164573b
tree2f22b6fc6ba93e36e4977dc10b7689544fa3f356
parent8a63a86e1f933dc7f114497408c50c58a633b8bc
vsprintf: use bd_partno in bdev_name

No need to go through the hd_struct to find the partition number.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/vsprintf.c