Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f34ee75 authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe
Browse files

[PATCH] Rearrange a few struct request members



This saves 8 bytes of data in 64-bit archs.

Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent ad3cadda
Loading
Loading
Loading
Loading
+5 −6
Original line number Original line Diff line number Diff line
@@ -151,11 +151,9 @@ struct request {
	void *elevator_private;
	void *elevator_private;
	void *completion_data;
	void *completion_data;


	unsigned short ioprio;

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


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


	unsigned short ioprio;

	int tag;
	int tag;
	char *buffer;


	int ref_count;
	int ref_count;
	request_queue_t *q;
	request_queue_t *q;
@@ -179,6 +178,7 @@ struct request {


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


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


	unsigned int data_len;
	unsigned int data_len;
	void *data;

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


	unsigned int timeout;
	unsigned int timeout;