On 5/7/21 10:06 AM, Philippe Mathieu-Daudé wrote:
By directly using find_first_bit() and find_next_bit from the
"bitops.h" API to iterate over the bitmap, we can remove the
bitmap[] variable-length array copy on the stack and the complex
manual bit testing/clearing logic.
Suggested-by: Stefan Hajnoczi<[email protected]>
Suggested-by: Richard Henderson<[email protected]>
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
hw/block/dataplane/virtio-blk.c | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
Reviewed-by: Richard Henderson <[email protected]>
r~