diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-24 09:09:56 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:33 -0400 |
| commit | 3be132f93cff2586be482cb81807ff83899f572e (patch) | |
| tree | 931381ea7280ff76349497d3747ffc23fb55ee0e /fs/bcachefs/snapshot.c | |
| parent | bcachefs: Kill redundant error message in topology repair (diff) | |
| download | linux-3be132f93cff2586be482cb81807ff83899f572e.tar.gz linux-3be132f93cff2586be482cb81807ff83899f572e.zip | |
bcachefs: bch2_btree_lost_data() now handles snapshots tree
We have a consolidated places for "this btree lost data, run this
repair", so use it.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
| -rw-r--r-- | fs/bcachefs/snapshot.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index 14ea09ccee37..94cf60f76b64 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -1743,10 +1743,6 @@ int bch2_snapshots_read(struct bch_fs *c) BUG_ON(!test_bit(BCH_FS_new_fs, &c->flags) && test_bit(BCH_FS_may_go_rw, &c->flags)); - if (bch2_err_matches(ret, EIO) || - (c->sb.btrees_lost_data & BIT_ULL(BTREE_ID_snapshots))) - ret = bch2_run_explicit_recovery_pass_persistent(c, BCH_RECOVERY_PASS_reconstruct_snapshots); - return ret; } |
