aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-01-27 11:25:03 +0100
committerKevin Wolf <kwolf@redhat.com>2011-01-31 10:03:00 +0100
commitbf595021c765c8869cf2942874c419d7b73bbaf6 (patch)
tree5b4af9de2cdfe842442999db3f5bc0bde3d200ca
parentfe6ceac86041ecdf7b99a3d57991941277fa7694 (diff)
Reorganize struct Qcow2Cache for better struct packing
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>
-rw-r--r--block/qcow2-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2-cache.c b/block/qcow2-cache.c
index 8f2955b372..382473933c 100644
--- a/block/qcow2-cache.c
+++ b/block/qcow2-cache.c
@@ -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;
};