]> Gentwo Git Trees - linux/.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>
Mon, 24 Feb 2025 04:35:37 +0000 (23:35 -0500)
commit2e90ab016829c649a43c435a93891376479d5176
treec00b9d1004af130a3a55cbbbf13b35273a6d1e3c
parent1eb849971e0a3ffcbea89250db7f8d7413cfd06e
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