From: Fiona Ebner <[email protected]> The 'resize' callback is only called by bdrv_parent_cb_resize() which is only called by bdrv_co_write_req_finish() to notify the parent(s) that the child was resized.
Signed-off-by: Fiona Ebner <[email protected]> Reviewed-by: Hanna Czenczek <[email protected]> Message-ID: <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> --- include/block/block_int-common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/block/block_int-common.h b/include/block/block_int-common.h index 034c0634c8..8a3d427356 100644 --- a/include/block/block_int-common.h +++ b/include/block/block_int-common.h @@ -1020,6 +1020,9 @@ struct BdrvChildClass { * the I/O API. */ + /* + * Notifies the parent that the child was resized. + */ void (*resize)(BdrvChild *child); /* -- 2.51.0
