On Fri, Apr 05, 2024 at 03:13:27PM +0300, Eugen Hristev wrote: > From: Gabriel Krisman Bertazi <krisman@xxxxxxxxxxxxx> > > Instead of reimplementing ext4_match_ci, use the new libfs helper. > > It also adds a comment explaining why fname->cf_name.name must be > checked prior to the encryption hash optimization, because that tripped > me before. > > Signed-off-by: Gabriel Krisman Bertazi <krisman@xxxxxxxxxxxxx> > Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx> > --- > fs/ext4/namei.c | 91 +++++++++++++++---------------------------------- > 1 file changed, 27 insertions(+), 64 deletions(-) Reviewed-by: Eric Biggers <ebiggers@xxxxxxxxxx> - Eric