]> git.ipfire.org Git - thirdparty/linux.git/commit
bcachefs: bcachefs_metadata_version_stripe_lru
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 8 Feb 2025 02:31:03 +0000 (21:31 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:15 +0000 (21:02 -0400)
commit6756e385a5bdf2e048ce2894208af9497062dcb9
tree79b93fedc5c356f90804b2cf02f3a3c147f9e363
parent88d961b518826e5e98e171d876b87b642f12de6a
bcachefs: bcachefs_metadata_version_stripe_lru

Add a persistent LRU for stripes, ordered by "number of empty blocks",
i.e. order in which we wish to reuse them.

This will replace the in-memory stripes heap, so we can kill off reading
stripes into memory at startup.

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