Commit 909c260c authored by Alberto Garcia's avatar Alberto Garcia Committed by Max Reitz
Browse files

qcow2: reorder fields in Qcow2CachedTable to reduce padding



Changing the current ordering saves 8 bytes per cache entry in x86_64.

Signed-off-by: default avatarAlberto Garcia <berto@igalia.com>
Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
Message-id: 0bd55291211df3dfb514d0e7d2031dd5c4f9f807.1438690126.git.berto@igalia.com
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 7f65ce83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,9 +37,9 @@

typedef struct Qcow2CachedTable {
    int64_t  offset;
    bool     dirty;
    uint64_t lru_counter;
    int      ref;
    bool     dirty;
} Qcow2CachedTable;

struct Qcow2Cache {