]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
afs_edit_dir_{add,remove}(): constify qstr argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Feb 2024 02:39:50 +0000 (21:39 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:08:33 +0000 (21:08 -0400)
commit3edcd68e35a7ad21186dbe9f74fad59cdcd24d71
tree96808d84fb88f52cbb0858b635d654c348d9e979
parent2974831dd5d298d18d0ea87ec46a84e920731efa
afs_edit_dir_{add,remove}(): 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.

Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/afs/dir_edit.c
fs/afs/internal.h