* updated wlroots (0.17.3 -> 0.18.1)
[t2sde.git] / package / filesystem / thin-provisioning-tools / hotfix-no-atomic64.diff
bloba269d1b401248b46d0349bef62341a65f6f4e101
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/thin-provisioning-tools/hotfix-no-atomic64.diff
3 # Copyright (C) 2023 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- thin-provisioning-tools-1.0.4/src/cache/writeback.rs.vanilla 2023-04-26 15:33:18.155369662 +0200
15 +++ thin-provisioning-tools-1.0.4/src/cache/writeback.rs 2023-04-26 15:33:33.940369670 +0200
16 @@ -3,7 +3,7 @@
17 use std::fs::File;
18 use std::io::Cursor;
19 use std::path::Path;
20 -use std::sync::atomic::{AtomicU64, Ordering};
21 +use std::sync::atomic::{AtomicU32, Ordering};
22 use std::sync::mpsc::{self, SyncSender};
23 use std::sync::{Arc, Mutex};
24 use std::thread;
25 @@ -169,14 +169,14 @@
26 //---------------
28 struct MappingCounter<F: Fn(&Mapping) -> bool> {
29 - count: AtomicU64,
30 + count: AtomicU32,
31 predicate: F,
34 impl<F: Fn(&Mapping) -> bool> MappingCounter<F> {
35 fn new(predicate: F) -> Self {
36 Self {
37 - count: AtomicU64::default(),
38 + count: AtomicU32::default(),
39 predicate,