cloud-hypervisor/block
Eugene Korenevsky 3791062b23 block: qcow: refactor: extract method cache_l2_cluster()
There are several copy-pasted code fragments in impl QcowFile. All of
them add L2 entry to the cache and one of them (in file_offset_write())
does also allocating new L2 entry if necessary.

Fold all these code fragments (except of one in l2_table() which does
error handling in special way) into cache_l2_cluster() method without
changing the logic.
This will make the code more compact and clean.

Signed-off-by: Eugene Korenevsky <ekorenevsky@aliyun.com>
2025-11-05 16:58:24 +00:00
..
src block: qcow: refactor: extract method cache_l2_cluster() 2025-11-05 16:58:24 +00:00
Cargo.toml build: upgrade whole* workspace to Rust edition 2024 2025-09-10 18:35:38 +00:00