diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-07-06 21:38:33 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-15 21:17:09 -0400 |
| commit | a67e08f74604a9f2e95b701d5de94a71d5d93a0e (patch) | |
| tree | 7e3b2976d05eae2e18fce94be10b1f86033ca03c | |
| parent | 94cb22d109d5172569cf0a477a9e76f08b92ed01 (diff) | |
ksmbd_vfs_kern_path_unlock(): constify path argument
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/smb/server/vfs.c | 2 | ||||
| -rw-r--r-- | 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 9f45c6ced854..1d9694578bff 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 d47472f3e30b..35725abf4f92 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, |