From: Benny Halevy Date: Mon, 13 Sep 2010 19:32:19 +0000 (+0200) Subject: block: fix blk_rq_map_kern bio direction flag X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a45dc2d2b8d1afa57c91dcfac224e50ffcd3f805;p=openwrt%2Fstaging%2Fblogic.git block: fix blk_rq_map_kern bio direction flag This bug was introduced in 7b6d91daee5cac6402186ff224c3af39d79f4a0e "block: unify flags for struct bio and struct request" Cc: Boaz Harrosh Signed-off-by: Benny Halevy Signed-off-by: Jens Axboe --- diff --git a/block/blk-map.c b/block/blk-map.c index c65d7593f7f1..ade0a08c9099 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -307,7 +307,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, return PTR_ERR(bio); if (rq_data_dir(rq) == WRITE) - bio->bi_rw |= (1 << REQ_WRITE); + bio->bi_rw |= REQ_WRITE; if (do_copy) rq->cmd_flags |= REQ_COPY_USER;