ext4: optimize match for casefolded encrypted dirs
authorDaniel Rosenberg <drosen@google.com>
Fri, 19 Mar 2021 07:34:14 +0000 (07:34 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Apr 2021 02:18:36 +0000 (22:18 -0400)
commit1ae98e295fa2577fb5e492200c58d10230e00e99
treec813ffd35cdd2c1451bc5999e30c04b844c9372e
parent471fbbea7ff7061b2d6474665cb5a2ceb4fd6500
ext4: optimize match for casefolded encrypted dirs

Matching names with casefolded encrypting directories requires
decrypting entries to confirm case since we are case preserving. We can
avoid needing to decrypt if our hash values don't match.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Link: https://lore.kernel.org/r/20210319073414.1381041-3-drosen@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/namei.c