From a67e08f74604a9f2e95b701d5de94a71d5d93a0e Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 6 Jul 2025 21:38:33 -0400 Subject: [PATCH] ksmbd_vfs_kern_path_unlock(): constify path argument Acked-by: Namjae Jeon Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- fs/smb/server/vfs.c | 2 +- fs/smb/server/vfs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.47.3