projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b30f09
)
[PATCH] blktrace: fix read-ahead bit
author
Milton Miller
<miltonm@bga.com>
Tue, 25 Jul 2006 13:04:13 +0000
(15:04 +0200)
committer
Jens Axboe
<axboe@suse.de>
Tue, 25 Jul 2006 13:04:13 +0000
(15:04 +0200)
It should be toggling the same bit on and off, fix it up.
Signed-off-by: Jens Axboe <axboe@suse.de>
block/blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blktrace.c
b/block/blktrace.c
index b8c0702777ff4e1bb2557567a7aa7f6d987bb6eb..265f7a830619ef1e5de60bfe1179fa9d3a002229 100644
(file)
--- a/
block/blktrace.c
+++ b/
block/blktrace.c
@@
-80,7
+80,7
@@
static u32 bio_act[5] __read_mostly = { 0, BLK_TC_ACT(BLK_TC_BARRIER), BLK_TC_AC
#define trace_sync_bit(rw) \
(((rw) & (1 << BIO_RW_SYNC)) >> (BIO_RW_SYNC - 1))
#define trace_ahead_bit(rw) \
- (((rw) & (1 << BIO_RW_AHEAD)) << (
BIO_RW_AHEAD - 0
))
+ (((rw) & (1 << BIO_RW_AHEAD)) << (
2 - BIO_RW_AHEAD
))
/*
* The worker for the various blk_add_trace*() types. Fills out a