bcachefs: Perf improvements for bch_alloc_read()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 17 Oct 2020 01:32:02 +0000 (21:32 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:44 +0000 (17:08 -0400)
commitf3721e12d07ab3c3e400a1a635e999ef72780de4
tree11d820a60bb23157bbb15f1c228e8b4317ba1f24
parent9f20ed157d521c7a1af0fe01e80d9e0ee880f9f7
bcachefs: Perf improvements for bch_alloc_read()

On large filesystems reading in the alloc info takes a significant
amount of time. But we don't need to be calling into the fully general
bch2_mark_key() path, just open code what we need in
bch2_alloc_read_fn().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/btree_types.h
fs/bcachefs/buckets.c
fs/bcachefs/ec.c