projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0722cb
)
block: fix blk_rq_map_kern bio direction flag
author
Benny Halevy
<bhalevy@panasas.com>
Mon, 13 Sep 2010 19:32:19 +0000
(21:32 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Tue, 21 Sep 2010 09:49:17 +0000
(11:49 +0200)
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>
block/blk-map.c
patch
|
blob
|
history
diff --git
a/block/blk-map.c
b/block/blk-map.c
index c65d7593f7f1deba5511347ceeb6dd5c881e5b3c..ade0a08c9099afdc487916924c0fe6718185536d 100644
(file)
--- 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;