Skip to content

Commit

Permalink
libata: reorder ata_queued_cmd to remove alignment padding on 64 bit …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Richard Kennedy authored and Jeff Garzik committed Oct 22, 2010
1 parent 02e0a60 commit b34e904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ struct ata_queued_cmd {
unsigned int extrabytes;
unsigned int curbytes;

struct scatterlist *cursg;
unsigned int cursg_ofs;

struct scatterlist sgent;

struct scatterlist *sg;

struct scatterlist *cursg;
unsigned int cursg_ofs;

unsigned int err_mask;
struct ata_taskfile result_tf;
ata_qc_cb_t complete_fn;
Expand Down

0 comments on commit b34e904

Please sign in to comment.