From: Al Viro Date: Mon, 7 Jul 2025 01:38:33 +0000 (-0400) Subject: ksmbd_vfs_kern_path_unlock(): constify path argument X-Git-Tag: v6.18-rc1~108^2~1^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a67e08f74604a9f2e95b701d5de94a71d5d93a0e;p=thirdparty%2Flinux.git ksmbd_vfs_kern_path_unlock(): constify path argument Acked-by: Namjae Jeon Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index 9f45c6ced8542..1d9694578bff3 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -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)); diff --git a/fs/smb/server/vfs.h b/fs/smb/server/vfs.h index d47472f3e30b4..35725abf4f92a 100644 --- a/fs/smb/server/vfs.h +++ b/fs/smb/server/vfs.h @@ -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,