]> www.infradead.org Git - users/hch/block.git/commit
target/iblock: fix holder printing in iblock_show_configfs_dev_params
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Sep 2020 09:24:06 +0000 (11:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Sep 2020 09:27:18 +0000 (11:27 +0200)
commit2cc811d280f8cfb416251bc17bf9334eb24d6599
tree6b2572ae7cbd6b0f9ddbf48e7d3b8b092785ab6d
parentf0aa3ab97efcded853129fcf31c146c15acbccbe
target/iblock: fix holder printing in iblock_show_configfs_dev_params

bd_contains is never NULL for an open block device.  In addition ibd_bd
is always set to a block device that was exclusively opened by the
target code, so the holder is guranteed to be ib_dev as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/target/target_core_iblock.c