block: Move BlockRequest type to io.c
commit41574268b7e61ab98384ca7048f3fec862433401
authorEric Blake <eblake@redhat.com>
Thu, 19 May 2016 23:05:50 +0000 (19 17:05 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Jun 2016 13:40:51 +0000 (7 14:40 +0100)
tree17cc862299e256b05cce314f17712a166d49e2fe
parent117bc3fa22d359db6c4f0c10f34c8c9e00ed64af
block: Move BlockRequest type to io.c

I was thrown by the fact that the public type BlockRequest had
an anonymous union, but no obvious discriminator.  Turns out
that the only client of the second branch of the union was code
internal to io.c, now that commit 91c6e4b killed public
multiwrite, so move it into io.c and improve the comments.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1463699150-19445-1-git-send-email-eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/io.c
include/block/block.h