diff options
| author | Eric Blake | 2016-07-16 01:22:57 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2016-07-20 15:11:55 +0200 |
| commit | 4da444a0bb5b6a7563a785f027402e5af4bd53aa (patch) | |
| tree | d583054df368ff5c61087f9860165115f3c3dd69 /include | |
| parent | rbd: Switch rbd_start_aio() to byte-based (diff) | |
| download | qemu-4da444a0bb5b6a7563a785f027402e5af4bd53aa.tar.gz qemu-4da444a0bb5b6a7563a785f027402e5af4bd53aa.tar.xz qemu-4da444a0bb5b6a7563a785f027402e5af4bd53aa.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/block_int.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index a6b13adb45..9bf9aed83d 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -142,8 +142,8 @@ struct BlockDriver { BlockCompletionFunc *cb, void *opaque); BlockAIOCB *(*bdrv_aio_flush)(BlockDriverState *bs, BlockCompletionFunc *cb, void *opaque); - BlockAIOCB *(*bdrv_aio_discard)(BlockDriverState *bs, - int64_t sector_num, int nb_sectors, + BlockAIOCB *(*bdrv_aio_pdiscard)(BlockDriverState *bs, + int64_t offset, int count, BlockCompletionFunc *cb, void *opaque); int coroutine_fn (*bdrv_co_readv)(BlockDriverState *bs, |
