Revision d62b5dea
b/block.c | ||
---|---|---|
2251 | 2251 |
cb, opaque); |
2252 | 2252 |
|
2253 | 2253 |
if (ret) { |
2254 |
/* Update stats even though technically transfer has not happened. */
|
|
2255 |
bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
|
|
2256 |
bs->rd_ops ++;
|
|
2254 |
/* Update stats even though technically transfer has not happened. */
|
|
2255 |
bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
|
|
2256 |
bs->rd_ops++;
|
|
2257 | 2257 |
} |
2258 | 2258 |
|
2259 | 2259 |
return ret; |
Also available in: Unified diff