diff options
| author | Fam Zheng | 2018-07-10 08:31:17 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-07-10 16:01:52 +0200 |
| commit | 0b9fd3f467dc5ac041fa014cd28c949b25b87d25 (patch) | |
| tree | dad799a3301d7ae3c789bf810518b889bf67f980 /block/blkdebug.c | |
| parent | block: Add copy offloading trace points (diff) | |
| download | qemu-0b9fd3f467dc5ac041fa014cd28c949b25b87d25.tar.gz qemu-0b9fd3f467dc5ac041fa014cd28c949b25b87d25.tar.xz qemu-0b9fd3f467dc5ac041fa014cd28c949b25b87d25.zip | |
block: Use BdrvChild to discard
Other I/O functions are already using a BdrvChild pointer in the API, so
make discard do the same. It makes it possible to initiate the same
permission checks before doing I/O, and much easier to share the
helper functions for this, which will be added and used by write,
truncate and copy range paths.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
| -rw-r--r-- | block/blkdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 526af2a808..0457bf5b66 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -625,7 +625,7 @@ static int coroutine_fn blkdebug_co_pdiscard(BlockDriverState *bs, return err; } - return bdrv_co_pdiscard(bs->file->bs, offset, bytes); + return bdrv_co_pdiscard(bs->file, offset, bytes); } static int coroutine_fn blkdebug_co_block_status(BlockDriverState *bs, |
