From: Fiona Ebner Date: Wed, 17 Sep 2025 11:54:48 +0000 (+0200) Subject: include/block/block_int-common: document when resize callback is used X-Git-Tag: v10.2.0-rc1~38^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41203754207ce78b2024043c457f66a833b723b9;p=thirdparty%2Fqemu.git include/block/block_int-common: document when resize callback is used 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 Reviewed-by: Hanna Czenczek Message-ID: <20250917115509.401015-2-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- 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); /*