mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-12 11:59:40 +00:00
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>
This commit is contained in:
parent
fe6ceac860
commit
bf595021c7
@ -35,9 +35,9 @@ typedef struct Qcow2CachedTable {
|
|||||||
} Qcow2CachedTable;
|
} Qcow2CachedTable;
|
||||||
|
|
||||||
struct Qcow2Cache {
|
struct Qcow2Cache {
|
||||||
int size;
|
|
||||||
Qcow2CachedTable* entries;
|
Qcow2CachedTable* entries;
|
||||||
struct Qcow2Cache* depends;
|
struct Qcow2Cache* depends;
|
||||||
|
int size;
|
||||||
bool depends_on_flush;
|
bool depends_on_flush;
|
||||||
bool writethrough;
|
bool writethrough;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user