> /* throttling disk I/O */ > if (bs->io_limits_enabled) { > - bdrv_io_limits_intercept(bs, nb_sectors, false); > + bdrv_io_limits_intercept(bs, bytes >> BDRV_SECTOR_BITS, false); > + }
Is it possible (bytes >> BDRV_SECTOR_BITS) == 0? >
> /* throttling disk I/O */ > if (bs->io_limits_enabled) { > - bdrv_io_limits_intercept(bs, nb_sectors, false); > + bdrv_io_limits_intercept(bs, bytes >> BDRV_SECTOR_BITS, false); > + }
Is it possible (bytes >> BDRV_SECTOR_BITS) == 0? >