summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/ntfs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-08-12 00:29:46 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2022-08-17 23:33:03 +0200
commitae2a823643d71f40751259266f7c2e7d90909662 (patch)
tree51da9f88acd77e76e35b6aabf0e5968081b8c110 /fs/ntfs3/ntfs.h
parentMerge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost (diff)
downloadlinux-ae2a823643d71f40751259266f7c2e7d90909662.tar.xz
linux-ae2a823643d71f40751259266f7c2e7d90909662.zip
dcache: move the DCACHE_OP_COMPARE case out of the __d_lookup_rcu loop
__d_lookup_rcu() is one of the hottest functions in the kernel on certain loads, and it is complicated by filesystems that might want to have their own name compare function. We can improve code generation by moving the test of DCACHE_OP_COMPARE outside the loop, which makes the loop itself much simpler, at the cost of some code duplication. But both cases end up being simpler, and the "native" direct case-sensitive compare particularly so. Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ntfs3/ntfs.h')
0 files changed, 0 insertions, 0 deletions