mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
zloop: remove a duplicate call to zloop_get_block_size
The sequential zone path has two calls to zloop_get_block_size, one
conditional on not having a block size, and one unconditionally.
Remove the latter as the block size only needs to be queried once.
Fixes: eb0570c7df ("block: new zoned loop block device driver")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20261029150353.2503201-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
deb2326729
commit
0835f49095
|
|
@ -1183,8 +1183,6 @@ static int zloop_init_zone(struct zloop_device *zlo, struct zloop_options *opts,
|
|||
return ret;
|
||||
}
|
||||
|
||||
zloop_get_block_size(zlo, zone);
|
||||
|
||||
mutex_lock(&zone->lock);
|
||||
ret = zloop_update_seq_zone(zlo, zone_no);
|
||||
mutex_unlock(&zone->lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user