Skip to content

Commit a67e08f

Browse files
author
Al Viro
committed
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>
1 parent 94cb22d commit a67e08f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/server/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *filepath,
13061306
caseless, true);
13071307
}
13081308

1309-
void ksmbd_vfs_kern_path_unlock(struct path *path)
1309+
void ksmbd_vfs_kern_path_unlock(const struct path *path)
13101310
{
13111311
/* While lock is still held, ->d_parent is safe */
13121312
inode_unlock(d_inode(path->dentry->d_parent));

fs/smb/server/vfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ int ksmbd_vfs_kern_path(struct ksmbd_work *work, char *name,
123123
int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
124124
unsigned int flags,
125125
struct path *path, bool caseless);
126-
void ksmbd_vfs_kern_path_unlock(struct path *path);
126+
void ksmbd_vfs_kern_path_unlock(const struct path *path);
127127
struct dentry *ksmbd_vfs_kern_path_create(struct ksmbd_work *work,
128128
const char *name,
129129
unsigned int flags,

0 commit comments

Comments
 (0)