diff options
author | Jens Axboe <axboe@suse.de> | 2006-06-13 03:02:34 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-06-23 11:10:39 -0400 |
commit | 8f34ee75decb80007ba77bba5a7384eadff4866d (patch) | |
tree | 63d6d4a613d0c7d2269e2dec01975d58b1e97a31 /include/linux/blkdev.h | |
parent | ad3caddaa1708e506f20b8e25a4a8ae586fc7d5b (diff) |
[PATCH] Rearrange a few struct request members
This saves 8 bytes of data in 64-bit archs.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 371c0ce5f630..aafe82788b4e 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -151,11 +151,9 @@ struct request { | |||
151 | void *elevator_private; | 151 | void *elevator_private; |
152 | void *completion_data; | 152 | void *completion_data; |
153 | 153 | ||
154 | unsigned short ioprio; | ||
155 | |||
156 | int rq_status; /* should split this into a few status bits */ | 154 | int rq_status; /* should split this into a few status bits */ |
157 | struct gendisk *rq_disk; | ||
158 | int errors; | 155 | int errors; |
156 | struct gendisk *rq_disk; | ||
159 | unsigned long start_time; | 157 | unsigned long start_time; |
160 | 158 | ||
161 | /* Number of scatter-gather DMA addr+len pairs after | 159 | /* Number of scatter-gather DMA addr+len pairs after |
@@ -170,8 +168,9 @@ struct request { | |||
170 | */ | 168 | */ |
171 | unsigned short nr_hw_segments; | 169 | unsigned short nr_hw_segments; |
172 | 170 | ||
171 | unsigned short ioprio; | ||
172 | |||
173 | int tag; | 173 | int tag; |
174 | char *buffer; | ||
175 | 174 | ||
176 | int ref_count; | 175 | int ref_count; |
177 | request_queue_t *q; | 176 | request_queue_t *q; |
@@ -179,6 +178,7 @@ struct request { | |||
179 | 178 | ||
180 | struct completion *waiting; | 179 | struct completion *waiting; |
181 | void *special; | 180 | void *special; |
181 | char *buffer; | ||
182 | 182 | ||
183 | /* | 183 | /* |
184 | * when request is used as a packet command carrier | 184 | * when request is used as a packet command carrier |
@@ -187,9 +187,8 @@ struct request { | |||
187 | unsigned char cmd[BLK_MAX_CDB]; | 187 | unsigned char cmd[BLK_MAX_CDB]; |
188 | 188 | ||
189 | unsigned int data_len; | 189 | unsigned int data_len; |
190 | void *data; | ||
191 | |||
192 | unsigned int sense_len; | 190 | unsigned int sense_len; |
191 | void *data; | ||
193 | void *sense; | 192 | void *sense; |
194 | 193 | ||
195 | unsigned int timeout; | 194 | unsigned int timeout; |