]> 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:27:08 +0000 (10:27 +0200)
commit4cd702fe93848eeaf6c656e1ca7b4a394c0ebf10
tree7d6fd397d992b91b6904bc9bcb5e0e4f1cbc3412
parent0c9ce43da97d6b9fd669a5762a607a583b9428f1
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