Small bug in bio_clone?

From: Russell Cattelan
Date: Fri Mar 19 2004 - 17:12:02 EST


Shouldn't __bio_clone be checking the state flags
of the src bio?

--- /usr/tmp/TmpDir.29150-0/fs/bio.c_1.3 2004-03-19
16:07:12.000000000 -0600
+++ fs/bio.c 2004-03-19 16:06:24.348491070 -0600
@@ -225,7 +225,7 @@
*/
bio->bi_vcnt = bio_src->bi_vcnt;
bio->bi_idx = bio_src->bi_idx;
- if (bio_flagged(bio, BIO_SEG_VALID)) {
+ if (bio_flagged(bio_src, BIO_SEG_VALID)) {
bio->bi_phys_segments = bio_src->bi_phys_segments;
bio->bi_hw_segments = bio_src->bi_hw_segments;
bio->bi_flags |= (1 << BIO_SEG_VALID);

Attachment: signature.asc
Description: This is a digitally signed message part