Re: [Qemu-devel] [PATCH 01/17] block: Convert bdrv_co_discard() to byte-based

2016-07-15 Thread Eric Blake
On 06/22/2016 09:50 AM, 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.

[Qemu-devel] [PATCH 01/17] block: Convert bdrv_co_discard() to byte-based

2016-06-22 Thread Eric Blake
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,