bio_advance9
Increment/complete a bio by some number of bytes
Usage
void bio_advance(struct bio * bio, unsigned bytes);
Arguments
bio
bio to advance
bytes
number of bytes to complete
Overview
This updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.
bio will then represent the remaining, uncompleted portion of the io.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.