bcachefs: Check for read_time == 0 in bch2_alloc_v4_invalid()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 6 Apr 2022 21:22:47 +0000 (17:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:30 +0000 (17:09 -0400)
commit11c7d3e8176a2e674faefa9d9d14210f5062326c
treed7c5d3ffcc232c83c37baf597ea75f177ad9a79a
parent292dea86dfc974e96a4b4972f4268611c2470d28
bcachefs: Check for read_time == 0 in bch2_alloc_v4_invalid()

We've been seeing this error in fsck and we weren't able to track down
where it came from - but now that .key_invalid methods take a rw
argument, we can safely check for this.

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