]> git.hungrycats.org Git - linux/commitdiff
zloop: remove a duplicate call to zloop_get_block_size
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2026 15:03:32 +0000 (16:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Oct 2026 15:29:19 +0000 (09:29 -0600)
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: eb0570c7df23 ("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>
drivers/block/zloop.c

index 9145e0f98d566d5cb81b5072d1a121a9e149bb8d..71f7685efb136bde4ebe8a57a4e81de8af8385f2 100644 (file)
@@ -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);