]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/power/block_io.c
block: unify flags for struct bio and struct request
[net-next-2.6.git] / kernel / power / block_io.c
index 97024fd40cd5f684c0abfe0bfa8118389a0175b3..83bbc7c02df95fd3560bdac7340cc3804d167d38 100644 (file)
@@ -28,7 +28,7 @@
 static int submit(int rw, struct block_device *bdev, sector_t sector,
                struct page *page, struct bio **bio_chain)
 {
-       const int bio_rw = rw | (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG);
+       const int bio_rw = rw | REQ_SYNC | REQ_UNPLUG;
        struct bio *bio;
 
        bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1);