diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-02-12 16:02:38 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-02-12 16:02:52 -0500 |
commit | 868abec1ab5068dcab59fb8d7ad5e11b7bba89f3 (patch) | |
tree | 582d3cbf397a7023df9dfeca5f28dc8360c9d579 /libbcachefs/replicas.h | |
parent | 612f6b9ab73c7f46e0254355b707d494a8ad9270 (diff) |
Update bcachefs sources to 5e73602f6c bcachefs: Fix for fsck hanging
Diffstat (limited to 'libbcachefs/replicas.h')
-rw-r--r-- | libbcachefs/replicas.h | 16 |
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); |