summaryrefslogtreecommitdiff
path: root/fs/bcachefs/trace.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-05-21 04:44:30 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:02 +0300
commitc4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1 (patch)
tree4be0daffa01be52e7629c131bb43cbec38c943a3 /fs/bcachefs/trace.h
parentd2c86b77de5894bbe26ecbf5214227f61855aed7 (diff)
downloadlinux-c4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1.tar.xz
six locks: Simplify dispatch
Originally, we used inlining/flattening to cause the compiler to generate different versions of lock/trylock/relock/unlock for each lock type - read, intent, and write. This made the individual functions smaller and let the compiler eliminate table lookups: however, as the code has gotten more complicated these optimizations have gotten less worthwhile, and all the tricky inlining and dispatching made the code less readable. Text size: 11015 bytes -> 7467 bytes, and benchmarks show no loss of performance. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.h')
0 files changed, 0 insertions, 0 deletions