From bf595021c765c8869cf2942874c419d7b73bbaf6 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Thu, 27 Jan 2011 11:25:03 +0100 Subject: [PATCH] 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 Signed-off-by: Kevin Wolf --- block/qcow2-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/qcow2-cache.c b/block/qcow2-cache.c index 8f2955b37..382473933 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; };