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>
This commit is contained in:
+1
-1
@@ -587,7 +587,7 @@ unlock:
|
||||
}
|
||||
|
||||
/* lookup a file */
|
||||
static int exfat_find(struct inode *dir, struct qstr *qname,
|
||||
static int exfat_find(struct inode *dir, const struct qstr *qname,
|
||||
struct exfat_dir_entry *info)
|
||||
{
|
||||
int ret, dentry, count;
|
||||
|
||||
Reference in New Issue
Block a user