OSDN Git Service

zram: cleanup zram_remove
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Mar 2022 05:29:05 +0000 (07:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 12:54:09 +0000 (06:54 -0600)
commit7a86d6dc1493326feb0d3ce5af2f34401dd3defa
tree27ae7a40836ed4a1e4943f271d1c129956c059fc
parentd666e20e2e7983d03bbf5e208b8485541ae616a1
zram: cleanup zram_remove

Remove the bdev variable and just use the gendisk pointed to by the
zram_device directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220330052917.2566582-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c