]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/block/aoe/aoeblk.c
block: unify flags for struct bio and struct request
[net-next-2.6.git] / drivers / block / aoe / aoeblk.c
index 035cefe4045ae76f076f3d56a85b058c3bb68fc7..65deffde60acadb7ae3329a0485ba1552b75c941 100644 (file)
@@ -173,7 +173,7 @@ aoeblk_make_request(struct request_queue *q, struct bio *bio)
                BUG();
                bio_endio(bio, -ENXIO);
                return 0;
-       } else if (bio_rw_flagged(bio, BIO_RW_BARRIER)) {
+       } else if (bio->bi_rw & REQ_HARDBARRIER) {
                bio_endio(bio, -EOPNOTSUPP);
                return 0;
        } else if (bio->bi_io_vec == NULL) {