OSDN Git Service

file-posix: Reorganise RawPosixAIOData
authorKevin Wolf <kwolf@redhat.com>
Thu, 25 Oct 2018 15:21:14 +0000 (16:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:52:41 +0000 (11:52 +0100)
commitd57c44d00f0daddd6d31b326ef844bf2facf6d8a
tree8e83c24d0d5a42b43057649d5aecdd5aede0bb62
parente23c9d7a1c827ac41cc4719d4c4800139b232857
file-posix: Reorganise RawPosixAIOData

RawPosixAIOData contains a lot of fields for several separate operations
that are to be processed in a worker thread and that need different
parameters. The struct is currently rather unorganised, with unions that
cover some, but not all operations, and even one #define for field names
instead of a union.

Clean this up to have some common fields and a single union. As a side
effect, on x86_64 the struct shrinks from 72 to 48 bytes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c