On Tue, May 13, 2025 at 03:26:28PM +0200, Jean-Louis Dupond wrote: > When discard-no-unref is enabled, discards are not queued like it > should. > This was broken since discard-no-unref was added. > > Add some helper function qcow2_discard_cluster which handles some common
s/Add some/Add a/ (presumably the maintainer will fix the typo when queueing the patch, no need to respin if the only change is a trivial commit message typo) > checks and calls the queue_discards function if needed to add the > discard request to the queue. > > Signed-off-by: Jean-Louis Dupond <jean-lo...@dupond.be> > --- > block/qcow2-cluster.c | 16 ++++++---------- > block/qcow2-refcount.c | 17 +++++++++++++++++ > block/qcow2.h | 4 ++++ > 3 files changed, 27 insertions(+), 10 deletions(-) Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org