Skip to content

Commit ca97d6c

Browse files
author
Al Viro
committed
generic_ci_validate_strict_name(): constify name argument
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 6acbce4 commit ca97d6c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

include/linux/fs.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,8 @@ int generic_ci_d_compare(const struct dentry *dentry, unsigned int len,
37193719
* happens when a directory is casefolded and the filesystem is strict
37203720
* about its encoding.
37213721
*/
3722-
static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name)
3722+
static inline bool generic_ci_validate_strict_name(struct inode *dir,
3723+
const struct qstr *name)
37233724
{
37243725
if (!IS_CASEFOLDED(dir) || !sb_has_strict_encoding(dir->i_sb))
37253726
return true;
@@ -3734,7 +3735,8 @@ static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qst
37343735
return !utf8_validate(dir->i_sb->s_encoding, name);
37353736
}
37363737
#else
3737-
static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name)
3738+
static inline bool generic_ci_validate_strict_name(struct inode *dir,
3739+
const struct qstr *name)
37383740
{
37393741
return true;
37403742
}

0 commit comments

Comments
 (0)