Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3e1d26e authored by Martin K. Petersen's avatar Martin K. Petersen Committed by Alasdair G Kergon
Browse files

dm: mark split bio as cloned



When a bio gets split, mark its fragments with the BIO_CLONED flag.

Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 0a4a1047
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -669,6 +669,7 @@ static struct bio *split_bvec(struct bio *bio, sector_t sector,
	clone->bi_size = to_bytes(len);
	clone->bi_io_vec->bv_offset = offset;
	clone->bi_io_vec->bv_len = clone->bi_size;
	clone->bi_flags |= 1 << BIO_CLONED;

	return clone;
}