Commit 04421ade authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] bio_endio() increments bio->bi_sector

increment bi_sector in bio_endio() so make_request_fn drivers don't
have to do this accounting themselves.
parent bb1fe39a
......@@ -728,6 +728,7 @@ void bio_endio(struct bio *bio, unsigned int bytes_done, int error)
}
bio->bi_size -= bytes_done;
bio->bi_sector += (bytes_done >> 9);
if (bio->bi_end_io)
bio->bi_end_io(bio, bytes_done, error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment