Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Al Viro ca97d6c6 6acbce44

+4 -2
+4 -2
include/linux/fs.h
··· 3719 3719 * happens when a directory is casefolded and the filesystem is strict 3720 3720 * about its encoding. 3721 3721 */ 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) 3723 3724 { 3724 3725 if (!IS_CASEFOLDED(dir) || !sb_has_strict_encoding(dir->i_sb)) 3725 3726 return true; ··· 3735 3734 return !utf8_validate(dir->i_sb->s_encoding, name); 3736 3735 } 3737 3736 #else 3738 - static inline bool generic_ci_validate_strict_name(struct inode *dir, struct qstr *name) 3737 + static inline bool generic_ci_validate_strict_name(struct inode *dir, 3738 + const struct qstr *name) 3739 3739 { 3740 3740 return true; 3741 3741 }