commit | 393a1f6863790fddf8b53bfb81f2c984cdbc1990 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@linux.dev> | Thu Nov 24 18:03:55 2022 -0500 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:09:49 2023 -0400 |
tree | 49d028ee32ff607fcc69bf16aba948463d4a91cd | |
parent | 19a614d2e4beed7faf52ab95cb48ce38a3c38c04 [diff] |
bcachefs: Better inlining in core write path Provide inline versions of some allocation functions - bch2_alloc_sectors_done_inlined() - bch2_alloc_sectors_append_ptrs_inlined() and use them in the core IO path. Also, inline bch2_extent_update_i_size_sectors() and bch2_bkey_append_ptr(). In the core write path, function call overhead matters - every function call is a jump to a new location and a potential cache miss. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>