From: Al Viro Date: Fri, 11 Jul 2025 09:45:01 +0000 (-0400) Subject: generic_ci_validate_strict_name(): constify name argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca97d6c60b1d1dff519a7e3dd86708304e657365;p=thirdparty%2Fkernel%2Fstable.git generic_ci_validate_strict_name(): constify name argument Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/include/linux/fs.h b/include/linux/fs.h index d7ab4f96d7051..6dcfc1c399caf 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3719,7 +3719,8 @@ int generic_ci_d_compare(const struct dentry *dentry, unsigned int len, * happens when a directory is casefolded and the filesystem is strict * about its encoding. */ -static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name) +static inline bool generic_ci_validate_strict_name(struct inode *dir, + const struct qstr *name) { if (!IS_CASEFOLDED(dir) || !sb_has_strict_encoding(dir->i_sb)) return true; @@ -3734,7 +3735,8 @@ static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qst return !utf8_validate(dir->i_sb->s_encoding, name); } #else -static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name) +static inline bool generic_ci_validate_strict_name(struct inode *dir, + const struct qstr *name) { return true; }