summaryrefslogtreecommitdiff
path: root/libbcachefs/replicas_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-11-03 20:11:29 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-11-03 20:19:25 -0400
commit2ab2ab0f781ae750473763e8a042c900a982d399 (patch)
tree2d76ee40a4cf6b6a54c180a9100216cc45c26f91 /libbcachefs/replicas_types.h
parente288c9f1de8a1b21a77cbfb80dfec37f2515e33c (diff)
Update bcachefs sources to b12d1535f3 bcachefs: fix bounds checks in bch2_bio_map()
Diffstat (limited to 'libbcachefs/replicas_types.h')
-rw-r--r--libbcachefs/replicas_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libbcachefs/replicas_types.h b/libbcachefs/replicas_types.h
new file mode 100644
index 00000000..3061840b
--- /dev/null
+++ b/libbcachefs/replicas_types.h
@@ -0,0 +1,11 @@
+#ifndef _BCACHEFS_REPLICAS_TYPES_H
+#define _BCACHEFS_REPLICAS_TYPES_H
+
+struct bch_replicas_cpu {
+ struct rcu_head rcu;
+ unsigned nr;
+ unsigned entry_size;
+ struct bch_replicas_entry entries[];
+};
+
+#endif /* _BCACHEFS_REPLICAS_TYPES_H */