diff options
author | Milton Miller <miltonm@bga.com> | 2006-07-25 15:04:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-07-25 15:04:13 +0200 |
commit | ad01b1ca797e5898cd40bb32cf0dc8c85aa9f7e8 (patch) | |
tree | c6232d2da8f031d4995d5f871458f280921a7ba2 /block/blktrace.c | |
parent | 7b30f09245d0e6868819b946b2f6879e5d3d106b (diff) | |
download | linux-ad01b1ca797e5898cd40bb32cf0dc8c85aa9f7e8.tar.bz2 |
[PATCH] blktrace: fix read-ahead bit
It should be toggling the same bit on and off, fix it up.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/blktrace.c')
-rw-r--r-- | block/blktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index b8c0702777ff..265f7a830619 100644 --- 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 |