aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2010-09-10 07:19:43 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-10-21 20:21:05 -0400
commitb34e90429ce8a23546b6b927d4e151df4c113644 (patch)
tree2034e09265b646d9e74bbb1165fc221b3f39cfcd /include
parent02e0a60477d839b8f8f974790192f5230f2371d2 (diff)
libata: reorder ata_queued_cmd to remove alignment padding on 64 bit builds
Reorder structure ata_queued_cmd to remove 8 bytes of alignment padding on 64 bit builds & therefore reduce the size of structure ata_port by 256 bytes. Overall this will have little impact, other than reducing the amount of memory that is cleared when allocating ata_ports. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 52112d39d71e..15efec05df67 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -570,13 +570,13 @@ struct ata_queued_cmd {
570 unsigned int extrabytes; 570 unsigned int extrabytes;
571 unsigned int curbytes; 571 unsigned int curbytes;
572 572
573 struct scatterlist *cursg;
574 unsigned int cursg_ofs;
575
576 struct scatterlist sgent; 573 struct scatterlist sgent;
577 574
578 struct scatterlist *sg; 575 struct scatterlist *sg;
579 576
577 struct scatterlist *cursg;
578 unsigned int cursg_ofs;
579
580 unsigned int err_mask; 580 unsigned int err_mask;
581 struct ata_taskfile result_tf; 581 struct ata_taskfile result_tf;
582 ata_qc_cb_t complete_fn; 582 ata_qc_cb_t complete_fn;