From: Sunny Zhu <sunnyzhyy@qq.com>
To: qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, kwolf@redhat.com, hreitz@redhat.com,
Sunny Zhu <sunnyzhyy@qq.com>
Subject: [PATCH] block: change type of bytes from int to int64_t for *bdrv_aio_pdiscard
Date: Mon, 21 Apr 2025 00:19:14 +0800 [thread overview]
Message-ID: <tencent_8649D99B33E6E6665A0EFA05B97592D70106@qq.com> (raw)
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
next reply other threads:[~2025-04-20 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-20 16:19 Sunny Zhu [this message]
2025-04-21 15:03 ` [PATCH] block: change type of bytes from int to int64_t for *bdrv_aio_pdiscard 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_8649D99B33E6E6665A0EFA05B97592D70106@qq.com \
--to=sunnyzhyy@qq.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).