/* bio_integrity_mark_head - Advance bip_vec skip bytes @bip: Integrity vector to advance  Number of bytes to advance it  */
void bio_integrity_mark_head(struct bio_integrity_payload *bip, unsigned int skip)
/* bio_integrity_mark_head - Advance bip_vec skip bytes @bip: Integrity vector to advance  Number of bytes to advance it  */
void bio_integrity_mark_head(struct bio_integrity_payload *bip, unsigned int skip)
{
	struct bio_vec *iv;
	unsigned int i;
	bip_for_each_vec(iv, bip, i) {
		if (skip == 0) {
			bip->bip_idx = i;
			return;
		} else if (skip >= iv->bv_len) {
			skip -= iv->bv_len;
		} else {
			iv->bv_offset += skip;
			iv->bv_len -= skip;
			bip->bip_idx = i;
			return;
		}
	}
}