summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
36ecec8)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
unsigned int blocks;
unsigned int nr_blocks;
unsigned int blocks;
unsigned int nr_blocks;
- block = io_u->offset / (unsigned long long) min_bs;
+ block = (io_u->offset - f->file_offset) / (unsigned long long) min_bs;
blocks = 0;
nr_blocks = (io_u->buflen + min_bs - 1) / min_bs;
blocks = 0;
nr_blocks = (io_u->buflen + min_bs - 1) / min_bs;