summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2010-09-13 21:32:19 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-09-21 11:49:17 +0200
commita45dc2d2b8d1afa57c91dcfac224e50ffcd3f805 (patch)
treeaa36b478521c748f1699390e3f4517a4d9fd6644 /block
parentb0722cb1ac84863f57471d2b254457c100319300 (diff)
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 <bharrosh@panasas.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-map.c2
1 files changed, 1 insertions, 1 deletions
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;