bcachefs: Optimize bch2_trans_iter_init()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 25 Nov 2022 05:40:27 +0000 (00:40 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:46 +0000 (17:09 -0400)
commitc96f108b053b394d622f56f2bcefeccb32d0394c
tree72902a176eac826bfa2a1d5e24b4d38b51852d0f
parent4d868d18e569e1f74c2a59d70ee7f0f0f099f677
bcachefs: Optimize bch2_trans_iter_init()

When flags & btree_id are constants, we can constant fold the entire
calculation of the actual iterator flags - and the whole thing becomes
small enough to inline.

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