]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
include/block/block_int-common: document when resize callback is used
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 17 Sep 2025 11:54:48 +0000 (13:54 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Oct 2025 11:10:09 +0000 (12:10 +0100)
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 <f.ebner@proxmox.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Message-ID: <20250917115509.401015-2-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/block/block_int-common.h

index 034c0634c8d3dd6b4a86771136f118993e654f12..8a3d427356e33c59c64db5d2ae38ffa1e0b7b814 100644 (file)
@@ -1020,6 +1020,9 @@ struct BdrvChildClass {
      * the I/O API.
      */
 
+    /*
+     * Notifies the parent that the child was resized.
+     */
     void (*resize)(BdrvChild *child);
 
     /*