diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-10 12:42:49 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:41 -0500 |
commit | 249bf593e84e0b4652d2cdb9884b97bc21b59d9f (patch) | |
tree | ef99bec99fd8a28c3fdc1338ffec3bc0bd501a8b /fs/bcachefs/bcachefs.h | |
parent | b56cee70e75e2edcbb92eb3d9357fae5df857b01 (diff) | |
download | linux-stable-249bf593e84e0b4652d2cdb9884b97bc21b59d9f.tar.gz linux-stable-249bf593e84e0b4652d2cdb9884b97bc21b59d9f.tar.bz2 linux-stable-249bf593e84e0b4652d2cdb9884b97bc21b59d9f.zip |
bcachefs: Fix snapshot.c assertion for online fsck
c->curr_recovery_pass can go backwards; this adds a non rewinding
version, c->recovery_pass_done.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r-- | fs/bcachefs/bcachefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h index b42e3854c51f..f33f510463d1 100644 --- a/fs/bcachefs/bcachefs.h +++ b/fs/bcachefs/bcachefs.h @@ -1057,7 +1057,10 @@ struct bch_fs { enum bch_recovery_pass curr_recovery_pass; /* bitmap of explicitly enabled recovery passes: */ u64 recovery_passes_explicit; + /* bitmask of recovery passes that we actually ran */ u64 recovery_passes_complete; + /* never rewinds version of curr_recovery_pass */ + enum bch_recovery_pass recovery_pass_done; struct semaphore online_fsck_mutex; /* DEBUG JUNK */ |