projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92cdf1
)
Reorganize struct Qcow2Cache for better struct packing
author
Jes Sorensen
<Jes.Sorensen@redhat.com>
Thu, 27 Jan 2011 10:25:03 +0000
(11:25 +0100)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/block/qcow2-cache.c
b/block/qcow2-cache.c
index
8f2955b
..
3824739
100644
(file)
--- 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;
};