diff options
author | Jens Axboe <axboe@suse.de> | 2006-07-28 03:26:13 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:27:00 -0400 |
commit | 9e2585a8a23f3a42f815b2a638725d85a921cd65 (patch) | |
tree | 6c318a746596ea8523ccf07aaa270cf4295cf50e /include/linux/blkdev.h | |
parent | d4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac (diff) |
[PATCH] as-iosched: remove arq->is_sync member
We can track this in struct request.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a905c4934a55..55ef6efe3eb5 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -531,6 +531,11 @@ enum { | |||
531 | 531 | ||
532 | #define rq_data_dir(rq) ((rq)->cmd_flags & 1) | 532 | #define rq_data_dir(rq) ((rq)->cmd_flags & 1) |
533 | 533 | ||
534 | /* | ||
535 | * We regard a request as sync, if it's a READ or a SYNC write. | ||
536 | */ | ||
537 | #define rq_is_sync(rq) (rq_data_dir((rq)) == READ || (rq)->cmd_flags & REQ_RW_SYNC) | ||
538 | |||
534 | static inline int blk_queue_full(struct request_queue *q, int rw) | 539 | static inline int blk_queue_full(struct request_queue *q, int rw) |
535 | { | 540 | { |
536 | if (rw == READ) | 541 | if (rw == READ) |