mbox series

[v3,0/2] Try exact-match comparison ahead of case-insensitive match

Message ID 20240119202544.19434-1-krisman@suse.de (mailing list archive)
Headers show
Series Try exact-match comparison ahead of case-insensitive match | expand

Message

Gabriel Krisman Bertazi Jan. 19, 2024, 8:25 p.m. UTC
Linus, Al, Eric,

This small series implement the exact-match comparison ahead of the
case-insensitive comparison as suggested by Linus.  The first patch only
exposes dentry_string_cmp in a header file so we can use it instead of
memcmp and the second actually do the optimization in the
case-insensitive comparison code.

Gabriel Krisman Bertazi (2):
  dcache: Expose dentry_string_cmp outside of dcache
  libfs: Attempt exact-match comparison first during casefold lookup

 fs/dcache.c            | 53 ------------------------------------------
 fs/libfs.c             | 39 +++++++++++++++++--------------
 include/linux/dcache.h | 53 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+), 70 deletions(-)