Skip to contentSkip to conversation

libata: reorder ata_device to remove 8 bytes of padding on 64 bits

PATCH In review [email protected] 2 participants 2 messages Sep 22, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 libata: reorder ata_device to remove 8 bytes of padding on 64 bits

From: Richard Kennedy <[email protected]>

reduce size by 8 bytes from 1160 to 1152 allowing it to fit in 1 fewer cachelines.

---

 include/linux/libata.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/libata.h renamed from include/linux/libata.h~libata-reorder-ata_device-to-remove-8-bytes-of-padding-on-64-bits +1 -1
diff -puN include/linux/libata.h~libata-reorder-ata_device-to-remove-8-bytes-of-padding-on-64-bits include/linux/libata.h
@@ -554,8 +554,8 @@ struct ata_ering {
 struct ata_device {
 	struct ata_link		*link;
 	unsigned int		devno;		/* 0 or 1 */
-	unsigned long		flags;		/* ATA_DFLAG_xxx */
 	unsigned int		horkage;	/* List of broken features */
+	unsigned long		flags;		/* ATA_DFLAG_xxx */
 	struct scsi_device	*sdev;		/* attached SCSI device */
 #ifdef CONFIG_ATA_ACPI
 	acpi_handle		acpi_handle;

_