bcachefs: Kill bch2_invalidate_bucket()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 22 Jan 2021 23:19:15 +0000 (18:19 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:52 +0000 (17:08 -0400)
commit9afc6652d14ac83ef9c5ce3544becad22ea50baa
tree4d4f2b5b07a625eca807bbb7b36e3f527cf9c34e
parent72eab8da47b211f50d0b68548e4cf070efb0c7ef
bcachefs: Kill bch2_invalidate_bucket()

This patch is working towards eventually getting rid of the in memory
struct bucket, and relying only on the btree representation.

Since bch2_invalidate_bucket() was only used for incrementing gens, not
invalidating cached data, no other counters were being changed as a side
effect - meaning it's safe for the allocator code to increment the
bucket gen directly.

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