]> git.baikalelectronics.ru Git - kernel.git/commit
block: display the correct diskname for bio
authorJiufei Xue <jiufei.xue@linux.alibaba.com>
Tue, 27 Feb 2018 12:10:18 +0000 (20:10 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Mar 2018 15:41:25 +0000 (08:41 -0700)
commit9478290b9c01da9b8aa30451cf741bc50bf5d01d
tree8547474277534911851c0370b417b86ba1b39aac
parentc822918693b48ab87dbb9064a05c7c13fadca5b6
block: display the correct diskname for bio

bio_devname use __bdevname to display the device name, and can
only show the major and minor of the part0,
Fix this by using disk_name to display the correct name.

Fixes: 6e9c1b27ad6b ("block: replace bi_bdev with a gendisk pointer and partitions index")
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
include/linux/bio.h