diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-01 03:37:53 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:45 -0400 |
commit | 0cc455b3ca5ffc9b0d5e9b1a21a9f3cd7fde8247 (patch) | |
tree | 079be9f81453b090a5d5bf88aba72e64e9ff8e7c /fs/bcachefs/btree_iter.c | |
parent | 182c7bbfbfe8d435672b8cb9730b07e88e103670 (diff) | |
download | lwn-0cc455b3ca5ffc9b0d5e9b1a21a9f3cd7fde8247.tar.gz lwn-0cc455b3ca5ffc9b0d5e9b1a21a9f3cd7fde8247.zip |
bcachefs: Inlining improvements
- Don't call into bch2_encrypt_bio() when we're not encrypting
- Pull slowpath out of trans_lock_write()
- Make sure bc2h_trans_journal_res_get() gets inlined.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.c')
-rw-r--r-- | fs/bcachefs/btree_iter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c index cbba0b79fdb8..4a9476e8399e 100644 --- a/fs/bcachefs/btree_iter.c +++ b/fs/bcachefs/btree_iter.c @@ -1160,7 +1160,7 @@ int __must_check bch2_btree_path_traverse(struct btree_trans *trans, btree_path_traverse_one(trans, path, flags, _RET_IP_); } -static void btree_path_copy(struct btree_trans *trans, struct btree_path *dst, +static inline void btree_path_copy(struct btree_trans *trans, struct btree_path *dst, struct btree_path *src) { unsigned i, offset = offsetof(struct btree_path, pos); @@ -1189,6 +1189,7 @@ static struct btree_path *btree_path_clone(struct btree_trans *trans, struct btr return new; } +__flatten struct btree_path *__bch2_btree_path_make_mut(struct btree_trans *trans, struct btree_path *path, bool intent) { |