The block size obviously needs to be queried when it is not set, not when it already is set. Reported: Damien Le Moal Fixes: 5e9929e2f03c ("zloop: share more code for opening a zone backing file") Signed-off-by: Christoph Hellwig --- drivers/block/zloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/zloop.c b/drivers/block/zloop.c index 65634a39b0bf..5cfbb5a6b771 100644 --- a/drivers/block/zloop.c +++ b/drivers/block/zloop.c @@ -1137,7 +1137,7 @@ static int zloop_init_zone(struct zloop_device *zlo, struct zloop_options *opts, goto out_fput; } - if (zlo->block_size) { + if (!zlo->block_size) { ret = zloop_get_block_size(zlo, zone); if (ret) goto out_fput; -- 2.53.0