OSDN Git Service

block: Reorganize some declarations in block-backend-io.h
authorAlberto Faria <afaria@redhat.com>
Tue, 5 Jul 2022 16:15:25 +0000 (17:15 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 12 Jul 2022 10:14:56 +0000 (12:14 +0200)
commit6f675c9306b732af8afafda91a0a3cd4e4ef97eb
tree15f9f9538273aa4b3e3e2c5ed5985190fa2f14c9
parent015ed2529a1a1876f2a78de90b768361c6e79345
block: Reorganize some declarations in block-backend-io.h

Keep generated_co_wrapper and coroutine_fn pairs together. This should
make it clear that each I/O function has these two versions.

Also move blk_co_{pread,pwrite}()'s implementations out of the header
file for consistency.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220705161527.1054072-18-afaria@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/block-backend.c
include/sysemu/block-backend-io.h