Skip to content

Commit

Permalink
[PATCH] blktrace: fix read-ahead bit
Browse files Browse the repository at this point in the history
It should be toggling the same bit on and off, fix it up.

Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Milton Miller authored and Jens Axboe committed Jul 25, 2006
1 parent 7b30f09 commit ad01b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad01b1c

Please sign in to comment.