raw: don't keep unopened block device around
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Sep 2020 07:19:51 +0000 (09:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Sep 2020 16:43:19 +0000 (10:43 -0600)
commit5a56ad7882a11624043db539a2c2076923148aa6
tree30e46893867605d86fee6e3b2703c4c356090a52
parent0fc66c9d63143f9437cd57cf5eab50a258fa40ec
raw: don't keep unopened block device around

Turn binding into a normal dev_t as the struct block device doesn't
buy us anything and use blkdev_open_by_dev to actually open it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/char/raw.c