bcachefs: Small check_fix_ptr fixes
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 23 May 2025 18:19:25 +0000 (14:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 23 May 2025 23:52:31 +0000 (19:52 -0400)
commit9b133c0d74b17db2dc0d2d70b6591b0ebb604463
tree439b4ff3b5bbb5dcc2b2a98aac59ed4213a2c803
parentcade003209cfe728de2ef880d5704cc322a7ce1f
bcachefs: Small check_fix_ptr fixes

We don't want to change the bucket gen, on gen mismatch: it's possible
to have multiple btree nodes with different gens in the same bucket that
we want to keep, if we have to recover from btree node scan.

It's also not necessary to set g->gen_valid; add a comment to that
effect.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/buckets.c