# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/thin-provisioning-tools/hotfix-no-atomic64.diff # Copyright (C) 2023 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- thin-provisioning-tools-1.0.4/src/cache/writeback.rs.vanilla 2023-04-26 15:33:18.155369662 +0200 +++ thin-provisioning-tools-1.0.4/src/cache/writeback.rs 2023-04-26 15:33:33.940369670 +0200 @@ -3,7 +3,7 @@ use std::fs::File; use std::io::Cursor; use std::path::Path; -use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::atomic::{AtomicU32, Ordering}; use std::sync::mpsc::{self, SyncSender}; use std::sync::{Arc, Mutex}; use std::thread; @@ -169,14 +169,14 @@ //--------------- struct MappingCounter bool> { - count: AtomicU64, + count: AtomicU32, predicate: F, } impl bool> MappingCounter { fn new(predicate: F) -> Self { Self { - count: AtomicU64::default(), + count: AtomicU32::default(), predicate, } }