summaryrefslogtreecommitdiff
path: root/libbcachefs/replicas.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-02-12 16:02:38 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2021-02-12 16:02:52 -0500
commit868abec1ab5068dcab59fb8d7ad5e11b7bba89f3 (patch)
tree582d3cbf397a7023df9dfeca5f28dc8360c9d579 /libbcachefs/replicas.h
parent612f6b9ab73c7f46e0254355b707d494a8ad9270 (diff)
Update bcachefs sources to 5e73602f6c bcachefs: Fix for fsck hanging
Diffstat (limited to 'libbcachefs/replicas.h')
-rw-r--r--libbcachefs/replicas.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/libbcachefs/replicas.h b/libbcachefs/replicas.h
index a16ef23b..9c8fd3d9 100644
--- a/libbcachefs/replicas.h
+++ b/libbcachefs/replicas.h
@@ -39,19 +39,9 @@ static inline void bch2_replicas_entry_cached(struct bch_replicas_entry *e,
e->devs[0] = dev;
}
-struct replicas_status {
- struct {
- int redundancy;
- unsigned nr_offline;
- } replicas[BCH_DATA_NR];
-};
-
-struct replicas_status __bch2_replicas_status(struct bch_fs *,
- struct bch_devs_mask);
-struct replicas_status bch2_replicas_status(struct bch_fs *);
-bool bch2_have_enough_devs(struct replicas_status, unsigned);
-
-int bch2_replicas_online(struct bch_fs *, bool);
+bool bch2_have_enough_devs(struct bch_fs *, struct bch_devs_mask,
+ unsigned, bool);
+
unsigned bch2_dev_has_data(struct bch_fs *, struct bch_dev *);
int bch2_replicas_gc_end(struct bch_fs *, int);