proxmox-backup/pbs-tools
Christian Ebner 8d9dc69945 tools: lru cache: tell if node was already present or newly inserted
Add a boolean return type to LruCache::insert(), telling if the node
was already present in the cache or if it was newly inserted.

This will allow to use the LRU cache for garbage collection, where
it is required to skip atime updates for chunks already marked in
use.

That improves phase 1 garbage collection performance by avoiding,
multiple atime updates.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2025-04-02 19:57:51 +02:00
..
src tools: lru cache: tell if node was already present or newly inserted 2025-04-02 19:57:51 +02:00
Cargo.toml tools: remove unused dependencies 2024-08-14 12:13:50 +02:00