]> www.infradead.org Git - users/hch/block.git/commit
z2ram: use blk_mq_alloc_disk and blk_cleanup_disk alloc_disk-part2
authorChristoph Hellwig <hch@lst.de>
Tue, 4 May 2021 16:49:18 +0000 (18:49 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 05:49:27 +0000 (08:49 +0300)
commita4a0e4b3169c4de00392fba96739f029aaa36e75
treeffffedddea953e30c1a932f3673e966e2766d5d1
parentb5f88a3a9551c7e3d1bf3831b6eb252beafff956
z2ram: use blk_mq_alloc_disk and blk_cleanup_disk

Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and
request_queue allocation.

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