zloop: fix block size query
Subsystems (2)
Christoph Hellwig
reviewerPATCH 1/1 zloop: fix block size query
The block size obviously needs to be queried when it is not set, not when it already is set.
Reported: Damien Le Moal <[email protected]>
Fixes 5e9929e2f03c ("zloop: share more code for opening a zone backing file")
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/block/zloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/zloop.c +1 -1
@@ -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;
Signature · 1 line
2.53.0
Quoted 6 lines · Christoph Hellwig
The block size obviously needs to be queried when it is not set, not when it already is set.
Reported: Damien Le Moal <[email protected]>
Fixes 5e9929e2f03c ("zloop: share more code for opening a zone backing file")Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Damien Le Moal <[email protected]>
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 2 lines · Christoph Hellwig
The block size obviously needs to be queried when it is not set, not when it already is set.
Applied, thanks!
[1/1] zloop: fix block size query
commit: 8fbee85a90789d367c347b1cfd5a5ef37f3a934a
Best regards,
Signature · 1 line
Jens Axboe