diff options
author | Eric Biggers <ebiggers@google.com> | 2020-05-07 00:59:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 17:50:49 +0200 |
commit | de3feefa3bfd4276da53aa87a88e4970825320f1 (patch) | |
tree | daab83808f69bb0ab990d166ed9667eef9833dd7 /fs/efs/namei.c | |
parent | 9fec865dde6e19309db8f87b0fb220cf110cdd4b (diff) |
f2fs: split f2fs_d_compare() from f2fs_match_name()
[ Upstream commit f874fa1c7c7905c1744a2037a11516558ed00a81 ]
Sharing f2fs_ci_compare() between comparing cached dentries
(f2fs_d_compare()) and comparing on-disk dentries (f2fs_match_name())
doesn't work as well as intended, as these actions fundamentally differ
in several ways (e.g. whether the task may sleep, whether the directory
is stable, whether the casefolded name was precomputed, whether the
dentry will need to be decrypted once we allow casefold+encrypt, etc.)
Just make f2fs_d_compare() implement what it needs directly, and rework
f2fs_ci_compare() to be specialized for f2fs_match_name().
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/efs/namei.c')
0 files changed, 0 insertions, 0 deletions