bio_advance (9) - Linux Manuals
bio_advance: increment/complete a bio by some number of bytes
bio_advance - increment/complete a bio by some number of bytes
void bio_advance(struct bio
* bio, unsigned bytes);
- bio to advance
- number of bytes to complete
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.