]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/md/raid5.c
block: unify flags for struct bio and struct request
[net-next-2.6.git] / drivers / md / raid5.c
index 96c690279fc6b58c7147c5860bf16417baa2149e..20ac2f14376a1417552982697cde2b303af7afd2 100644 (file)
@@ -3958,7 +3958,7 @@ static int make_request(mddev_t *mddev, struct bio * bi)
        const int rw = bio_data_dir(bi);
        int remaining;
 
-       if (unlikely(bio_rw_flagged(bi, BIO_RW_BARRIER))) {
+       if (unlikely(bi->bi_rw & REQ_HARDBARRIER)) {
                /* Drain all pending writes.  We only really need
                 * to ensure they have been submitted, but this is
                 * easier.