diff options
author | Daniel Rosenberg <drosen@google.com> | 2020-10-28 08:08:20 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-10-28 20:43:13 +0300 |
commit | f8f4acb6cded4e455b2d390ce2221391fc3f09ee (patch) | |
tree | 38cbd858e1b24e8641ff728d1a1047b219e73b0e /fs/ext4/hash.c | |
parent | d7dce9e08595e80bf8039a81794809c66fe26431 (diff) | |
download | linux-f8f4acb6cded4e455b2d390ce2221391fc3f09ee.tar.xz |
ext4: use generic casefolding support
This switches ext4 over to the generic support provided in libfs.
Since casefolded dentries behave the same in ext4 and f2fs, we decrease
the maintenance burden by unifying them, and any optimizations will
immediately apply to both.
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20201028050820.1636571-1-drosen@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/hash.c')
-rw-r--r-- | fs/ext4/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c index 2924261226e0..a92eb79de0cc 100644 --- a/fs/ext4/hash.c +++ b/fs/ext4/hash.c @@ -275,7 +275,7 @@ int ext4fs_dirhash(const struct inode *dir, const char *name, int len, struct dx_hash_info *hinfo) { #ifdef CONFIG_UNICODE - const struct unicode_map *um = EXT4_SB(dir->i_sb)->s_encoding; + const struct unicode_map *um = dir->i_sb->s_encoding; int r, dlen; unsigned char *buff; struct qstr qstr = {.name = name, .len = len }; |