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.

exfat_find(): constify qstr argument

Nothing outside of fs/dcache.c has any business modifying
dentry names; passing &dentry->d_name as an argument should
have that argument declared as a const pointer.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 2974831d f9fadf23

+1 -1
+1 -1
fs/exfat/namei.c
··· 587 587 } 588 588 589 589 /* lookup a file */ 590 - static int exfat_find(struct inode *dir, struct qstr *qname, 590 + static int exfat_find(struct inode *dir, const struct qstr *qname, 591 591 struct exfat_dir_entry *info) 592 592 { 593 593 int ret, dentry, count;