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>
Showing
- block/partition-generic.c 0 additions, 14 deletionsblock/partition-generic.c
- drivers/md/md.c 2 additions, 2 deletionsdrivers/md/md.c
- fs/ext4/super.c 3 additions, 3 deletionsfs/ext4/super.c
- fs/reiserfs/journal.c 2 additions, 3 deletionsfs/reiserfs/journal.c
- include/linux/fs.h 0 additions, 1 deletioninclude/linux/fs.h
- init/do_mounts.c 2 additions, 10 deletionsinit/do_mounts.c
Please register or sign in to comment