Explorar o código

dm: mark split bio as cloned

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

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Martin K. Petersen %!s(int64=16) %!d(string=hai) anos
pai
achega
f3e1d26ede
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/md/dm.c

+ 1 - 0
drivers/md/dm.c

@@ -669,6 +669,7 @@ static struct bio *split_bvec(struct bio *bio, sector_t sector,
 	clone->bi_size = to_bytes(len);
 	clone->bi_size = to_bytes(len);
 	clone->bi_io_vec->bv_offset = offset;
 	clone->bi_io_vec->bv_offset = offset;
 	clone->bi_io_vec->bv_len = clone->bi_size;
 	clone->bi_io_vec->bv_len = clone->bi_size;
+	clone->bi_flags |= 1 << BIO_CLONED;
 
 
 	return clone;
 	return clone;
 }
 }