[PATCH 1/4] include/block/block_int-common: document when resize callback is used

Fiona Ebner posted 4 patches 4 months, 2 weeks ago
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>
[PATCH 1/4] include/block/block_int-common: document when resize callback is used
Posted by Fiona Ebner 4 months, 2 weeks ago
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>
---
 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 925a3e7353..692a9696d1 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.47.2
Re: [PATCH 1/4] include/block/block_int-common: document when resize callback is used
Posted by Hanna Czenczek 4 months, 2 weeks ago
On 30.06.25 13:27, Fiona Ebner wrote:
> 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>
> ---
>   include/block/block_int-common.h | 3 +++
>   1 file changed, 3 insertions(+)

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>