qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: change type of bytes from int to int64_t for *bdrv_aio_pdiscard
@ 2025-04-20 16:19 Sunny Zhu
  2025-04-21 15:03 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Sunny Zhu @ 2025-04-20 16:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-block, kwolf, hreitz, Sunny Zhu

Keep it consistent with *bdrv_co_pdiscard.

Currently, there is no BlockDriver implemented the bdrv_aio_pdiscard() function,
so we don’t need to make any adaptations either.

Signed-off-by: Sunny Zhu <sunnyzhyy@qq.com>
---
 include/block/block_int-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/block/block_int-common.h b/include/block/block_int-common.h
index ebb4e56a50..4bf422d733 100644
--- a/include/block/block_int-common.h
+++ b/include/block/block_int-common.h
@@ -507,7 +507,7 @@ struct BlockDriver {
         BlockDriverState *bs, BlockCompletionFunc *cb, void *opaque);
 
     BlockAIOCB * GRAPH_RDLOCK_PTR (*bdrv_aio_pdiscard)(
-        BlockDriverState *bs, int64_t offset, int bytes,
+        BlockDriverState *bs, int64_t offset, int64_t bytes,
         BlockCompletionFunc *cb, void *opaque);
 
     int coroutine_fn GRAPH_RDLOCK_PTR (*bdrv_co_readv)(BlockDriverState *bs,
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-25 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 16:19 [PATCH] block: change type of bytes from int to int64_t for *bdrv_aio_pdiscard Sunny Zhu
2025-04-21 15:03 ` Eric Blake
2025-04-21 17:33   ` Sunny Zhu
2025-04-22  7:11   ` Philippe Mathieu-Daudé
2025-04-24 17:40     ` Eric Blake
2025-04-25 15:36       ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).