bcachefs: Kill alloc_v4.fragmentation_lru
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 1 Oct 2024 23:08:37 +0000 (19:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 5 Oct 2024 00:25:32 +0000 (20:25 -0400)
commit260af1562ec14353824da24fe7acc179a902558e
treeee8306bdab2e847f546f9892b0cb83cfa8674e5c
parent01bf5e3bd26ff8e49bf06fa4180f3eab51ab06df
bcachefs: Kill alloc_v4.fragmentation_lru

The fragmentation_lru field hasn't been needed since we reworked the LRU
btrees to use the btree write buffer; previously it was used to resolve
collisions, but the revised LRU btree uses the backpointer (the bucket)
as part of the key.

It should have been deleted at the time of the LRU rework; since it
wasn't, that left places for bugs to hide, in check/repair.

This fixes LRU fsck on a filesystem image helpfully provided by a user
who disappeared before I could get his name for the reported-by.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background_format.h
fs/bcachefs/btree_gc.c
fs/bcachefs/lru.c
fs/bcachefs/move.c
fs/bcachefs/movinggc.c
fs/bcachefs/sb-errors_format.h