Fix bug with not noticing end of file
authorJens Axboe <jens.axboe@oracle.com>
Tue, 27 Mar 2007 18:21:24 +0000 (20:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 Mar 2007 18:21:24 +0000 (20:21 +0200)
commit43063a1c8288d987eb9c14e2736b3b857836def6
tree06a52bb868afab81126124333c27778963378420
parente6e41602c9725f811160f244b8ec5ecaa4912f45
Fix bug with not noticing end of file

We repeatedly re-read the last end of a file, instead of skipping
to a new one. The problem was that the offset got turned into a
block number for comparison, so we would screw up if size % bs.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c