diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-12 20:03:19 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:31 -0400 |
commit | 75c8d0305a5eecbe84b8ffef20e1c049f30f4123 (patch) | |
tree | 76073d5a57ad71416d86807bd304791943e25d43 /fs/bcachefs/buckets.c | |
parent | 41fc86222480c34d8647661b36d3fb1e9312fd33 (diff) | |
download | lwn-75c8d0305a5eecbe84b8ffef20e1c049f30f4123.tar.gz lwn-75c8d0305a5eecbe84b8ffef20e1c049f30f4123.zip |
bcachefs: Kill old rebuild_replicas option
This option was useful when the replicas mechism was new and still being
debugged, but hasn't been used in ages - let's delete it.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/buckets.c')
-rw-r--r-- | fs/bcachefs/buckets.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 7fa76e737aa7..14c9c1098522 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -382,10 +382,9 @@ static inline int update_replicas(struct bch_fs *c, struct bkey_s_c k, idx = bch2_replicas_entry_idx(c, r); if (idx < 0 && - (test_bit(BCH_FS_REBUILD_REPLICAS, &c->flags) || - fsck_err(c, "no replicas entry\n" - " while marking %s", - (bch2_bkey_val_to_text(&buf, c, k), buf.buf)))) { + fsck_err(c, "no replicas entry\n" + " while marking %s", + (bch2_bkey_val_to_text(&buf, c, k), buf.buf))) { percpu_up_read(&c->mark_lock); ret = bch2_mark_replicas(c, r); percpu_down_read(&c->mark_lock); |