diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-13 17:36:55 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:15:03 -0400 |
| commit | 7ed4c14e20be2b113e111ec9fa1803c778e00280 (patch) | |
| tree | 9ccaf3fb8875977b36a68fa782e55b9ebb8219ff /fs/bcachefs/alloc_background.c | |
| parent | ab355520305ce4ab7331757c35b1042b32cae52e (diff) | |
| download | linux-next-7ed4c14e20be2b113e111ec9fa1803c778e00280.tar.gz linux-next-7ed4c14e20be2b113e111ec9fa1803c778e00280.zip | |
bcachefs: Reduce usage of recovery.curr_pass
We want recovery.curr_pass to be private to the recovery passes code,
for better showing recovery pass status; also, it may rewind and is
generally not the correct member to use.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_background.c')
| -rw-r--r-- | fs/bcachefs/alloc_background.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index 4ae2aa6ea758..88e710ba2685 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -309,7 +309,8 @@ int bch2_alloc_v4_validate(struct bch_fs *c, struct bkey_s_c k, "data type inconsistency"); bkey_fsck_err_on(!a.io_time[READ] && - c->recovery.curr_pass > BCH_RECOVERY_PASS_check_alloc_to_lru_refs, + !(c->recovery.passes_to_run & + BIT_ULL(BCH_RECOVERY_PASS_check_alloc_to_lru_refs)), c, alloc_key_cached_but_read_time_zero, "cached bucket with read_time == 0"); break; |
