summaryrefslogtreecommitdiff
path: root/libbcachefs/recovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/recovery.c')
-rw-r--r--libbcachefs/recovery.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbcachefs/recovery.c b/libbcachefs/recovery.c
index e9e4a1ad..eae38ea7 100644
--- a/libbcachefs/recovery.c
+++ b/libbcachefs/recovery.c
@@ -130,8 +130,7 @@ int bch2_fs_recovery(struct bch_fs *c)
int ret;
mutex_lock(&c->sb_lock);
- if (!rcu_dereference_protected(c->replicas,
- lockdep_is_held(&c->sb_lock))->nr) {
+ if (!c->replicas.entries) {
bch_info(c, "building replicas info");
set_bit(BCH_FS_REBUILD_REPLICAS, &c->flags);
}
@@ -374,8 +373,6 @@ int bch2_fs_initialize(struct bch_fs *c)
if (ret)
goto err;
- atomic_long_set(&c->nr_inodes, 2);
-
if (enabled_qtypes(c)) {
ret = bch2_fs_quota_read(c);
if (ret)