提交 909c260c 编写于 作者: A Alberto Garcia 提交者: Max Reitz

qcow2: reorder fields in Qcow2CachedTable to reduce padding

Changing the current ordering saves 8 bytes per cache entry in x86_64.
Signed-off-by: NAlberto Garcia <berto@igalia.com>
Reviewed-by: NMax Reitz <mreitz@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
Reviewed-by: NKevin Wolf <kwolf@redhat.com>
Message-id: 0bd55291211df3dfb514d0e7d2031dd5c4f9f807.1438690126.git.berto@igalia.com
Signed-off-by: NMax Reitz <mreitz@redhat.com>
上级 7f65ce83
......@@ -37,9 +37,9 @@
typedef struct Qcow2CachedTable {
int64_t offset;
bool dirty;
uint64_t lru_counter;
int ref;
bool dirty;
} Qcow2CachedTable;
struct Qcow2Cache {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册