]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Advance bch_alloc.oldest_gen if no stale pointers
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 8 Feb 2025 00:56:11 +0000 (19:56 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:14 +0000 (21:02 -0400)
commit69bd8a927702cec62b023948be22ac817d2643a7
treee1cef756a9edfe5d7f99cbac4a9a060bf2fba5fb
parent942a418c7a45a970a3cf08e8b879865838f5488f
bcachefs: Advance bch_alloc.oldest_gen if no stale pointers

Now that we've got cached backpointers and aren't leaving around stale
pointers on bucket invalidation, we no longer need the periodic (rare)
gc_gens - which recalculates each bucket's oldest gen to avoid wraparound.

We can't delete that code because we've got to support existing
filesystems that will still have stale pointers, but this gets rid of
another scalability limit.

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