Explorar el 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 hace 16 años
padre
commit
f3e1d26ede
Se han modificado 1 ficheros con 1 adiciones y 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_io_vec->bv_offset = offset;
 	clone->bi_io_vec->bv_len = clone->bi_size;
+	clone->bi_flags |= 1 << BIO_CLONED;
 
 	return clone;
 }