diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-25 00:40:27 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:46 -0400 |
commit | c96f108b053b394d622f56f2bcefeccb32d0394c (patch) | |
tree | 72902a176eac826bfa2a1d5e24b4d38b51852d0f /fs/bcachefs/btree_types.h | |
parent | 4d868d18e569e1f74c2a59d70ee7f0f0f099f677 (diff) | |
download | linux-c96f108b053b394d622f56f2bcefeccb32d0394c.tar.gz linux-c96f108b053b394d622f56f2bcefeccb32d0394c.tar.bz2 linux-c96f108b053b394d622f56f2bcefeccb32d0394c.zip |
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>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r-- | fs/bcachefs/btree_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index 72e6a214b89a..ae5a692d1924 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -278,7 +278,6 @@ struct btree_iter { unsigned snapshot; struct bpos pos; - struct bpos pos_after_commit; /* * Current unpacked key - so that bch2_btree_iter_next()/ * bch2_btree_iter_next_slot() can correctly advance pos. |