Skip to content
Commit 38ced43b authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Inline btree write buffer sort



The sort in the btree write buffer flush path is a very hot path, and
it's particularly performance sensitive since it's single threaded and
can block every other thread on a multithreaded write workload.

It's well worth doing a sort with inlined cmp and swap functions.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 09caeabe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment