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. Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> --- fs/exfat/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index f5f1c4e8a29f..c8388a2ec227 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -587,7 +587,7 @@ static int exfat_create(struct mnt_idmap *idmap, struct inode *dir, } /* 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; -- 2.47.2