bcachefs: Kill allocator short-circuit invalidate
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 24 Dec 2021 05:34:48 +0000 (00:34 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000 (17:09 -0400)
commit1f5f52bd036ca019d77b2446b8e20981483d1b9d
tree92692a52ddfca8f4fb1b8903a1aa2f02dbee2152
parent6214485b6f74c098615401ae3cde74f87396a298
bcachefs: Kill allocator short-circuit invalidate

The allocator thread invalidates buckets (increments their generation
number) prior to discarding them and putting them on freelists. We've
had a short circuit path for some time to only update the in-memory
bucket mark when doing the invalidate if we're not invalidating cached
data, but that short-circuit path hasn't really been needed for quite
some time (likely since the btree key cache code was added).

We're deleting it now as part of deleting/converting code that uses the
in memory bucket array.

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