block: remove the GENHD_FL_HIDDEN check in blkdev_get_no_open
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 13:38:04 +0000 (06:38 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Nov 2021 13:38:04 +0000 (06:38 -0700)
commit140862805affca32b3c92a9a7643a7ee6d6ab278
tree4c8292d0138d62ffa048e9b8ba7ecdbebfc6375a
parent46e7eac647b34ed4106a8262f8bedbb90801fadd
block: remove the GENHD_FL_HIDDEN check in blkdev_get_no_open

Hidden gendisks never hash the block device inode, so this can't happen.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211122130625.1136848-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bdev.c