Merge branch 'v2.6.36-rc8' into for-2.6.37/barrier
[firefly-linux-kernel-4.4.55.git] / block / blk-core.c
index 2a5b19204546e81232ff58deec24ca287cec2364..a840523e3b409d74c075ddc8cb8c5e5a0383dede 100644 (file)
@@ -1182,9 +1182,9 @@ static int __make_request(struct request_queue *q, struct bio *bio)
        int el_ret;
        unsigned int bytes = bio->bi_size;
        const unsigned short prio = bio_prio(bio);
-       const bool sync = (bio->bi_rw & REQ_SYNC);
-       const bool unplug = (bio->bi_rw & REQ_UNPLUG);
-       const unsigned int ff = bio->bi_rw & REQ_FAILFAST_MASK;
+       const bool sync = !!(bio->bi_rw & REQ_SYNC);
+       const bool unplug = !!(bio->bi_rw & REQ_UNPLUG);
+       const unsigned long ff = bio->bi_rw & REQ_FAILFAST_MASK;
        int where = ELEVATOR_INSERT_SORT;
        int rw_flags;