]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix bio RW_AHEAD test
authorJens Axboe <axboe@suse.de>
Wed, 6 Aug 2003 15:58:02 +0000 (08:58 -0700)
committerDave Jones <davej@redhat.com>
Wed, 6 Aug 2003 15:58:02 +0000 (08:58 -0700)
This patch fixes the BIO_RW_AHEAD being tested at the wrong end
in the bio layer.

drivers/block/ll_rw_blk.c

index 619be12e3f259e61ff7f182135647f64b973a38e..8d73379c87ee30a0f2218a451e3e537a147f18d1 100644 (file)
@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio)
 
        barrier = test_bit(BIO_RW_BARRIER, &bio->bi_rw);
 
-       ra = bio_flagged(bio, BIO_RW_AHEAD);
+       ra = bio->bi_rw & (1 << BIO_RW_AHEAD);
 
 again:
        insert_here = NULL;