public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Small bug in bio_clone?
@ 2004-03-19 22:11 Russell Cattelan
  2004-03-20 10:17 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Cattelan @ 2004-03-19 22:11 UTC (permalink / raw)
  To: Linux Kernel List

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-20 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-19 22:11 Small bug in bio_clone? Russell Cattelan
2004-03-20 10:17 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox