]> git.proxmox.com Git - qemu.git/commitdiff
Reorganize struct Qcow2Cache for better struct packing
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 27 Jan 2011 10:25:03 +0000 (11:25 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:03:00 +0000 (10:03 +0100)
Move size after the two pointers in struct Qcow2Cache to get better
packing of struct elements on 64 bit architectures.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cache.c

index 8f2955b3720ce7acc1bcd77d103b38f111ecc5c5..382473933c8490111e6066aff3b89c938955061b 100644 (file)
@@ -35,9 +35,9 @@ typedef struct Qcow2CachedTable {
 } Qcow2CachedTable;
 
 struct Qcow2Cache {
-    int                     size;
     Qcow2CachedTable*       entries;
     struct Qcow2Cache*      depends;
+    int                     size;
     bool                    depends_on_flush;
     bool                    writethrough;
 };