]> git.proxmox.com Git - mirror_qemu.git/commit
block: Add .bdrv_co_pdiscard() driver callback
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2016 23:22:58 +0000 (17:22 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Jul 2016 13:11:55 +0000 (14:11 +0100)
commit47a5486d598e0cfef6c87c5f44b85955a5f2c4ff
treef9829a55d7484cd58245d34d2cab210d27a9df1b
parent4da444a0bb5b6a7563a785f027402e5af4bd53aa
block: Add .bdrv_co_pdiscard() driver callback

There's enough drivers with a sector-based callback that it will
be easier to switch one at a time.  This patch adds a byte-based
callback, and then after all drivers are swapped, we'll drop the
sector-based callback.

[checkpatch doesn't like the space after coroutine_fn in
block_int.h, but it's consistent with the rest of the file]

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