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

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
......@@ -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;
}
......
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