diff options
| author | Jes Sorensen | 2011-01-27 11:25:03 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2011-01-31 10:03:00 +0100 |
| commit | bf595021c765c8869cf2942874c419d7b73bbaf6 (patch) | |
| tree | 5b4af9de2cdfe842442999db3f5bc0bde3d200ca /block | |
| parent | ahci: Fix cpu_physical_memory_unmap() argument ordering (diff) | |
| download | qemu-bf595021c765c8869cf2942874c419d7b73bbaf6.tar.gz qemu-bf595021c765c8869cf2942874c419d7b73bbaf6.tar.xz qemu-bf595021c765c8869cf2942874c419d7b73bbaf6.zip | |
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>
Diffstat (limited to 'block')
| -rw-r--r-- | block/qcow2-cache.c | 2 |
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; }; |
