bcachefs: Always check for bucket reuse after read
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 12 Feb 2022 07:32:11 +0000 (02:32 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commit8d65e475b20610854419fef8dba155200b45a687
tree9060c45146e7eae759d44c433a6757807afd9da9
parent5b2e599f506891eec8163c1d90800168a0016d14
bcachefs: Always check for bucket reuse after read

Since dirty extents can be moved or overwritten, it's not just cached
data that we need the ptr_stale() check in bc2h_read_endio for - this
fixes data checksum errors seen in the tiering ktest tests.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/io.c