loop: remove unused variable in loop_set_status()
Commit0384264ea8
("block: pass a gendisk to bdev_disk_changed") changed to pass lo->lo_disk instead of lo->lo_device. Fixes:0384264ea8
("block: pass a gendisk to bdev_disk_changed") Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Link: https://lore.kernel.org/r/20210702152714.7978-1-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
63c38d858e
commit
585af8ede7
|
@ -1434,7 +1434,6 @@ static int
|
||||||
loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
|
loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
struct block_device *bdev;
|
|
||||||
kuid_t uid = current_uid();
|
kuid_t uid = current_uid();
|
||||||
int prev_lo_flags;
|
int prev_lo_flags;
|
||||||
bool partscan = false;
|
bool partscan = false;
|
||||||
|
@ -1503,7 +1502,6 @@ out_unfreeze:
|
||||||
if (!err && (lo->lo_flags & LO_FLAGS_PARTSCAN) &&
|
if (!err && (lo->lo_flags & LO_FLAGS_PARTSCAN) &&
|
||||||
!(prev_lo_flags & LO_FLAGS_PARTSCAN)) {
|
!(prev_lo_flags & LO_FLAGS_PARTSCAN)) {
|
||||||
lo->lo_disk->flags &= ~GENHD_FL_NO_PART_SCAN;
|
lo->lo_disk->flags &= ~GENHD_FL_NO_PART_SCAN;
|
||||||
bdev = lo->lo_device;
|
|
||||||
partscan = true;
|
partscan = true;
|
||||||
}
|
}
|
||||||
out_unlock:
|
out_unlock:
|
||||||
|
|
Loading…
Reference in New Issue