OSDN Git Service

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

Use a local variable for the gendisk instead of the part0 block_device,
as the gendisk is what this function actually operates on.

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