Skip to content

Commit

Permalink
Change from [sb_has_enc_strict_mode] to [sb_has_strict_encoding] in e…
Browse files Browse the repository at this point in the history
…xt4 fs
  • Loading branch information
liyafe1997 committed Oct 20, 2024
1 parent d765033 commit 364e425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ static int ext4_ci_compare(const struct inode *parent, const struct qstr *name,
/* Handle invalid character sequence as either an error
* or as an opaque byte sequence.
*/
if (sb_has_enc_strict_mode(sb))
if (sb_has_strict_encoding(sb))
ret = -EINVAL;
else if (name->len != entry.len)
ret = 1;
Expand Down Expand Up @@ -2344,7 +2344,7 @@ static int ext4_add_entry(handle_t *handle, struct dentry *dentry,
return -EINVAL;

#ifdef CONFIG_UNICODE
if (sb_has_enc_strict_mode(sb) && IS_CASEFOLDED(dir) &&
if (sb_has_strict_encoding(sb) && IS_CASEFOLDED(dir) &&
sb->s_encoding && utf8_validate(sb->s_encoding, &dentry->d_name))
return -EINVAL;
#endif
Expand Down

0 comments on commit 364e425

Please sign in to comment.