block: Convert .bdrv_aio_discard() to byte-based
commit4da444a0bb5b6a7563a785f027402e5af4bd53aa
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2016 23:22:57 +0000 (15 17:22 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Jul 2016 13:11:55 +0000 (20 14:11 +0100)
treed583054df368ff5c61087f9860165115f3c3dd69
parent7bbca9e290a9c7c217b5a24fc6094e91e54bd05d
block: Convert .bdrv_aio_discard() to byte-based

Another step towards byte-based interfaces everywhere.  Replace
the sector-based driver callback .bdrv_aio_discard() with a new
byte-based .bdrv_aio_pdiscard().  Only raw-posix and RBD drivers
are affected, so it was not worth splitting into multiple patches.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1468624988-423-9-git-send-email-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
block/raw-posix.c
block/rbd.c
include/block/block_int.h