]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove __bdevname
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:11 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:07 +0000 (07:57 -0600)
commit88d607274e51643dc1999983580d6b47846d78f8
tree55f9ea3a38c2a00f2af36b84aaadef9837b78c8f
parent31024d28d3d22773a75847e23fc9d442205852e1
block: remove __bdevname

There is no good reason for __bdevname to exist.  Just open code
printing the string in the callers.  For three of them the format
string can be trivially merged into existing printk statements,
and in init/do_mounts.c we can at least do the scnprintf once at
the start of the function, and unconditional of CONFIG_BLOCK to
make the output for tiny configfs a little more helpful.

Acked-by: Theodore Ts'o <tytso@mit.edu> # for ext4
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c
drivers/md/md.c
fs/ext4/super.c
fs/reiserfs/journal.c
include/linux/fs.h
init/do_mounts.c