blk-crypto: pass a gendisk to blk_crypto_sysfs_{,un}register
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Nov 2022 04:26:33 +0000 (05:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2022 18:09:00 +0000 (11:09 -0700)
commit450deb93df7d457cdd93594a1987f9650c749b96
treedc95a82fad520ef1668c6262028c258aa3fb3720
parentc62256dda37133a48d56cecc15e4a4d527d4cc46
blk-crypto: pass a gendisk to blk_crypto_sysfs_{,un}register

Prepare for changes to the block layer sysfs handling by passing the
readily available gendisk to blk_crypto_sysfs_{,un}register.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20221114042637.1009333-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-crypto-internal.h
block/blk-crypto-sysfs.c
block/blk-sysfs.c