]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Refactor bch2_check_alloc_to_lru_ref()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 25 Nov 2023 20:46:02 +0000 (15:46 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:38 +0000 (11:47 -0500)
commit3f59547e22b9dc3eecca3407528df8b950f4e1c2
treebdc6e4acbb28ecc3005d9fb9ddad14db0821eddc
parent25d1e39df0e28494f1e82c68a3967c84dca009b3
bcachefs: Refactor bch2_check_alloc_to_lru_ref()

This code was somewhat convoluted - because originally bch2_lru_set()
could modify the LRU index if there was a collision.

That's no longer the case, so the "create LRU entry" path has no reason
to update the alloc key, so we can separate the handling of the two fsck
errors.

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