summaryrefslogtreecommitdiffstats
path: root/fs/qnx4
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-05-20 21:44:30 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:02 -0400
commitc4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1 (patch)
tree4be0daffa01be52e7629c131bb43cbec38c943a3 /fs/qnx4
parentd2c86b77de5894bbe26ecbf5214227f61855aed7 (diff)
downloadlinux-stable-c4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1.tar.gz
linux-stable-c4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1.tar.bz2
linux-stable-c4bd3491b1c0b335f63599ec96d1d4ab0d37a3c1.zip
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/qnx4')
0 files changed, 0 insertions, 0 deletions