summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-12-01 10:32:48 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:13 -0400
commit73e6ab95640a7d370b7af481e8ed44be7c76b898 (patch)
treecd6ab49b19c918b2ba3edca747f815c8f91eca51 /fs/bcachefs/recovery.c
parent56e0e7c79f492df2a5ad207a0ba16f13511b6416 (diff)
downloadlwn-73e6ab95640a7d370b7af481e8ed44be7c76b898.tar.gz
lwn-73e6ab95640a7d370b7af481e8ed44be7c76b898.zip
bcachefs: Switch replicas to mark_lock
Prep work for upcoming disk accounting changes Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 2d0736caa5ef..cfdf9b563637 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -131,8 +131,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);
}