[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 01/17] block: Convert bdrv_co_discard() to byte-
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH 01/17] block: Convert bdrv_co_discard() to byte-based |
Date: |
Thu, 14 Jul 2016 13:15:17 +0100 |
User-agent: |
Mutt/1.6.1 (2016-04-27) |
On Wed, Jun 22, 2016 at 09:50:58AM -0600, Eric Blake wrote:
> Another step towards byte-based interfaces everywhere. Replace
> the sector-based bdrv_co_discard() with a new byte-based
> bdrv_co_pdiscard(), which silently ignores any unaligned head
> or tail. Driver callbacks will be converted in followup patches.
>
> By calculating the alignment outside of the loop, and clamping
> the max discard to an aligned value, we can simplify the actions
> done within the loop.
>
> Signed-off-by: Eric Blake <address@hidden>
> ---
> include/block/block.h | 2 +-
> block/blkreplay.c | 3 ++-
> block/block-backend.c | 3 ++-
> block/io.c | 67
> +++++++++++++++++++++++++++------------------------
> block/raw_bsd.c | 3 ++-
> 5 files changed, 42 insertions(+), 36 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH 01/17] block: Convert bdrv_co_discard() to byte-based,
Stefan Hajnoczi <=