diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-19 00:43:10 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:54 -0400 |
commit | 7546c78df1963c60b2b6b80265daa26462b87ec5 (patch) | |
tree | 2afddb6f6286efcf3fbb3bb4a067022a2e32b944 /fs | |
parent | 27616a31241e0625ee063f2cacd8c8e339b2de65 (diff) | |
download | lwn-7546c78df1963c60b2b6b80265daa26462b87ec5.tar.gz lwn-7546c78df1963c60b2b6b80265daa26462b87ec5.zip |
bcachefs: Fix ec repair code check
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/btree_gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index 959f4081b42f..8ae838acd853 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -661,7 +661,7 @@ static int bch2_check_fix_ptrs(struct btree_trans *trans, enum btree_id btree_id bch2_bkey_val_to_text(&buf, c, *k), buf.buf))) do_update = true; - if (fsck_err_on(!bch2_ptr_matches_stripe_m(m, p), c, + if (fsck_err_on(m && m->alive && !bch2_ptr_matches_stripe_m(m, p), c, "pointer does not match stripe %llu\n" "while marking %s", (u64) p.ec.idx, |