diff options
author | Jens Axboe <axboe@suse.de> | 2006-08-10 02:59:11 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:29:22 -0400 |
commit | 49171e5c6f414d49a061b5c1c84967c2eb569822 (patch) | |
tree | 95da6dad18f9bfe10367db86e740b8842f60a686 /include | |
parent | c00895ab2f08df7044e58ee01c38bf0a661ea0eb (diff) |
[PATCH] Remove struct request_list from struct request
It is always identical to &q->rq, and we only use it for detecting
whether this request came out of our mempool or not. So replace it
with an additional ->flags bit flag.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 604f23189097..d4c1dd046e27 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -180,6 +180,7 @@ enum rq_flag_bits { | |||
180 | __REQ_PREEMPT, /* set for "ide_preempt" requests */ | 180 | __REQ_PREEMPT, /* set for "ide_preempt" requests */ |
181 | __REQ_ORDERED_COLOR, /* is before or after barrier */ | 181 | __REQ_ORDERED_COLOR, /* is before or after barrier */ |
182 | __REQ_RW_SYNC, /* request is sync (O_DIRECT) */ | 182 | __REQ_RW_SYNC, /* request is sync (O_DIRECT) */ |
183 | __REQ_ALLOCED, /* request came from our alloc pool */ | ||
183 | __REQ_NR_BITS, /* stops here */ | 184 | __REQ_NR_BITS, /* stops here */ |
184 | }; | 185 | }; |
185 | 186 | ||
@@ -199,6 +200,7 @@ enum rq_flag_bits { | |||
199 | #define REQ_PREEMPT (1 << __REQ_PREEMPT) | 200 | #define REQ_PREEMPT (1 << __REQ_PREEMPT) |
200 | #define REQ_ORDERED_COLOR (1 << __REQ_ORDERED_COLOR) | 201 | #define REQ_ORDERED_COLOR (1 << __REQ_ORDERED_COLOR) |
201 | #define REQ_RW_SYNC (1 << __REQ_RW_SYNC) | 202 | #define REQ_RW_SYNC (1 << __REQ_RW_SYNC) |
203 | #define REQ_ALLOCED (1 << __REQ_ALLOCED) | ||
202 | 204 | ||
203 | #define BLK_MAX_CDB 16 | 205 | #define BLK_MAX_CDB 16 |
204 | 206 | ||
@@ -264,7 +266,6 @@ struct request { | |||
264 | 266 | ||
265 | int ref_count; | 267 | int ref_count; |
266 | request_queue_t *q; | 268 | request_queue_t *q; |
267 | struct request_list *rl; | ||
268 | 269 | ||
269 | void *special; | 270 | void *special; |
270 | char *buffer; | 271 | char *buffer; |