mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 12:50:53 +00:00
zfs: remove unnecessary arc from dataset object map
The static was not really used anywhere else so it was made private. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
2c89b88226
commit
f37ce33164
@ -1,7 +1,7 @@
|
||||
use std::collections::HashSet;
|
||||
use std::os::unix::fs::MetadataExt;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::{Arc, LazyLock, Mutex};
|
||||
use std::sync::{LazyLock, Mutex};
|
||||
|
||||
use anyhow::{bail, Error};
|
||||
|
||||
@ -98,8 +98,8 @@ const_regex! {
|
||||
OBJSET_REGEX = r"^objset-0x[a-fA-F0-9]+$";
|
||||
}
|
||||
|
||||
pub static ZFS_DATASET_OBJSET_MAP: LazyLock<Arc<Mutex<HashMap<String, (String, String)>>>> =
|
||||
LazyLock::new(|| Arc::new(Mutex::new(HashMap::new())));
|
||||
static ZFS_DATASET_OBJSET_MAP: LazyLock<Mutex<HashMap<String, (String, String)>>> =
|
||||
LazyLock::new(|| Mutex::new(HashMap::new()));
|
||||
|
||||
// parses /proc/spl/kstat/zfs/POOL/objset-ID files
|
||||
// they have the following format:
|
||||
|
Loading…
Reference in New Issue
Block a user