]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/replicas_types.h
Update bcachefs sources to 04f2d2ae5b bcachefs: Fix build error on weird gcc
[bcachefs-tools-debian] / libbcachefs / replicas_types.h
index 0535b1d3760edc1cdbc8284c44546f60f1ffb944..5cfff489bbc34860e9e2a833617f9298653b255a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _BCACHEFS_REPLICAS_TYPES_H
 #define _BCACHEFS_REPLICAS_TYPES_H
 
@@ -7,4 +8,20 @@ struct bch_replicas_cpu {
        struct bch_replicas_entry *entries;
 };
 
+struct replicas_delta {
+       s64                     delta;
+       struct bch_replicas_entry r;
+} __packed;
+
+struct replicas_delta_list {
+       unsigned                size;
+       unsigned                used;
+
+       struct                  {} memset_start;
+       u64                     nr_inodes;
+       u64                     persistent_reserved[BCH_REPLICAS_MAX];
+       struct                  {} memset_end;
+       struct replicas_delta   d[0];
+};
+
 #endif /* _BCACHEFS_REPLICAS_TYPES_H */