block: simplify the block device claiming interface
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Nov 2020 20:20:08 +0000 (21:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commit37c3fc9abb25cd767ad5b048358336ac89488c16
tree50d6c3ef1c865a76931fb83976b42e4a7e12cd02
parenta954ea812018a84d350b316c39a2be3edc4b7ca8
block: simplify the block device claiming interface

Stop passing the whole device as a separate argument given that it
can be trivially deducted and cleanup the !holder debug check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c
fs/block_dev.c
include/linux/blkdev.h