cloud-hypervisor/block/src
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
..
qcow block: qcow: refactor: extract method cache_l2_cluster() 2025-11-05 16:58:24 +00:00
vhdx build: treewide: clippy: collapse nested ifs, use let chains 2025-09-10 18:35:38 +00:00
async_io.rs block: fix error style 2025-09-25 21:17:06 +00:00
fcntl.rs misc: block: streamline error Display::fmt() 2025-06-13 19:55:54 +00:00
fixed_vhd.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
fixed_vhd_async.rs block: batch submit requests for fixed VHD 2025-09-02 16:29:25 +00:00
fixed_vhd_sync.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
lib.rs misc: cleanup &Arc<dyn T> -> &dyn T 2025-10-28 17:37:49 +00:00
qcow_sync.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
raw_async.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
raw_async_aio.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
raw_sync.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
vhd.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00
vhdx_sync.rs build: treewide: fmt for edition 2024 2025-09-10 18:35:38 +00:00