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

Another step towards byte-based interfaces everywhere.  Replace
the sector-based bdrv_aio_discard() with a new byte-based
bdrv_aio_pdiscard(), which silently ignores any unaligned head
or tail.  Driver callbacks will be converted in followup patches.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 1468624988-423-5-git-send-email-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/block-backend.c
block/io.c
block/trace-events
include/block/block.h