t/io_uring: fix max_blocks calculation in nvme passthrough mode
[fio.git] / t / io_uring.c
index 504f8ce9f1b14a40bc37e19cd0f318e956708913..f9f4b84005b91d4655989901c8a8778b60429897 100644 (file)
@@ -704,7 +704,7 @@ static int get_file_size(struct file *f)
                                        bs, lbs);
                        return -1;
                }
-               f->max_blocks = nlba / bs;
+               f->max_blocks = nlba;
                f->max_size = nlba;
                f->lba_shift = ilog2(lbs);
                return 0;