]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: clean up ext4_match() and callers
authorEric Biggers <ebiggers@google.com>
Mon, 24 Apr 2017 17:00:13 +0000 (10:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 08:29:04 +0000 (10:29 +0200)
commitb522f43beefc90961d9fccf83e7f4c1dba724bc4
tree12e8ff13ee5a3a241ade2b25fab0845658419509
parent1a4029e931dc7d9dd0ba88cb8165b2d8737d52c5
ext4: clean up ext4_match() and callers

[ Upstream commit d9b9f8d5a88cb7881d9f1c2b7e9de9a3fe1dc9e2 ]

When ext4 encryption was originally merged, we were encrypting the
user-specified filename in ext4_match(), introducing a lot of additional
complexity into ext4_match() and its callers.  This has since been
changed to encrypt the filename earlier, so we can remove the gunk
that's no longer needed.  This more or less reverts ext4_search_dir()
and ext4_find_dest_de() to the way they were in the v4.0 kernel.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/namei.c