]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ksmbd_vfs_kern_path_unlock(): constify path argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jul 2025 01:38:33 +0000 (21:38 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:17:09 +0000 (21:17 -0400)
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/smb/server/vfs.c
fs/smb/server/vfs.h

index 9f45c6ced85421efa0581acf579be42e0d60f683..1d9694578bff305375fda4201dffea0dbc61097d 100644 (file)
@@ -1306,7 +1306,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *filepath,
                                     caseless, true);
 }
 
-void ksmbd_vfs_kern_path_unlock(struct path *path)
+void ksmbd_vfs_kern_path_unlock(const struct path *path)
 {
        /* While lock is still held, ->d_parent is safe */
        inode_unlock(d_inode(path->dentry->d_parent));
index d47472f3e30b4d57e8939e7a2d3ceab97d7a230b..35725abf4f92ac56fd25dc38bd240f86ac998356 100644 (file)
@@ -123,7 +123,7 @@ int ksmbd_vfs_kern_path(struct ksmbd_work *work, char *name,
 int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
                               unsigned int flags,
                               struct path *path, bool caseless);
-void ksmbd_vfs_kern_path_unlock(struct path *path);
+void ksmbd_vfs_kern_path_unlock(const struct path *path);
 struct dentry *ksmbd_vfs_kern_path_create(struct ksmbd_work *work,
                                          const char *name,
                                          unsigned int flags,