bcachefs: Better inlining for bch2_alloc_to_v4_mut
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 31 Jan 2023 01:58:43 +0000 (20:58 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:49 +0000 (17:09 -0400)
commit19a614d2e4beed7faf52ab95cb48ce38a3c38c04
tree2b2a71e8adaae57def4d6cd93f3628cd8fbc8573
parentadf6360b5d6071ea268fa6f5f03befba4909ffaa
bcachefs: Better inlining for bch2_alloc_to_v4_mut

This separates out the slowpath into a separate function, and inlines
bch2_alloc_v4_mut into bch2_trans_start_alloc_update(), the main place
it's called.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/alloc_foreground.c
fs/bcachefs/bcachefs_format.h
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/lru.c
fs/bcachefs/movinggc.c