Files
qemu/block
Jean-Louis Dupond 524d5ba8c0 qcow2: put discards in discard queue when discard-no-unref is enabled
When discard-no-unref is enabled, discards are not queued like it
should.
This was broken since discard-no-unref was added.

Add a helper function qcow2_discard_cluster which handles some common
checks and calls the queue_discards function if needed to add the
discard request to the queue.

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
Message-ID: <20250513132628.1055549-3-jean-louis@dupond.be>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2025-11-11 22:06:09 +01:00
..
2024-12-20 17:44:56 +01:00
2025-11-11 22:06:09 +01:00
2025-03-06 14:21:25 +01:00
2023-11-08 17:56:18 +01:00
2025-11-11 22:06:09 +01:00
2025-11-11 22:06:09 +01:00
2024-12-20 17:44:56 +01:00
2025-05-08 10:21:10 -04:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00
2025-11-11 22:06:09 +01:00
2023-11-08 17:56:18 +01:00