Skip to content

Commit

Permalink
[PATCH] Rearrange a few struct request members
Browse files Browse the repository at this point in the history
This saves 8 bytes of data in 64-bit archs.

Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Jun 23, 2006
1 parent ad3cadd commit 8f34ee7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ struct request {
void *elevator_private;
void *completion_data;

unsigned short ioprio;

int rq_status; /* should split this into a few status bits */
struct gendisk *rq_disk;
int errors;
struct gendisk *rq_disk;
unsigned long start_time;

/* Number of scatter-gather DMA addr+len pairs after
Expand All @@ -170,15 +168,17 @@ struct request {
*/
unsigned short nr_hw_segments;

unsigned short ioprio;

int tag;
char *buffer;

int ref_count;
request_queue_t *q;
struct request_list *rl;

struct completion *waiting;
void *special;
char *buffer;

/*
* when request is used as a packet command carrier
Expand All @@ -187,9 +187,8 @@ struct request {
unsigned char cmd[BLK_MAX_CDB];

unsigned int data_len;
void *data;

unsigned int sense_len;
void *data;
void *sense;

unsigned int timeout;
Expand Down

0 comments on commit 8f34ee7

Please sign in to comment.