diff options
author | Alberto Garcia <berto@igalia.com> | 2015-08-04 15:14:42 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2015-09-04 21:00:32 +0200 |
commit | 909c260c71d1bee7018e17034580ffd0743508db (patch) | |
tree | 36a2259d7fb419f0483cde97d586348eb4b94a0c /block/qcow2-cache.c | |
parent | 7f65ce834accce0b7e4bc79313bacf229b957783 (diff) | |
download | qemu-909c260c71d1bee7018e17034580ffd0743508db.zip qemu-909c260c71d1bee7018e17034580ffd0743508db.tar.gz qemu-909c260c71d1bee7018e17034580ffd0743508db.tar.bz2 |
qcow2: reorder fields in Qcow2CachedTable to reduce padding
Changing the current ordering saves 8 bytes per cache entry in x86_64.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 0bd55291211df3dfb514d0e7d2031dd5c4f9f807.1438690126.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qcow2-cache.c')
-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 8457458..046f5b8 100644 --- a/block/qcow2-cache.c +++ b/block/qcow2-cache.c @@ -37,9 +37,9 @@ typedef struct Qcow2CachedTable { int64_t offset; - bool dirty; uint64_t lru_counter; int ref; + bool dirty; } Qcow2CachedTable; struct Qcow2Cache { |