projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae0516
)
block: re-use existing 'reading' variable instead of checking direction again
author
majianpeng
<majianpeng@gmail.com>
Wed, 21 Dec 2011 14:27:24 +0000
(15:27 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 21 Dec 2011 14:27:24 +0000
(15:27 +0100)
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-map.c
b/block/blk-map.c
index 164cd0059706214e53c01b780b353fca98d9b829..623e1cd4cffe997e71fbb54577bd42f220af64b3 100644
(file)
--- a/
block/blk-map.c
+++ b/
block/blk-map.c
@@
-311,7
+311,7
@@
int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf,
if (IS_ERR(bio))
return PTR_ERR(bio);
- if (
rq_data_dir(rq) == WRITE
)
+ if (
!reading
)
bio->bi_rw |= REQ_WRITE;
if (do_copy)