diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-04 12:51:14 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-10-05 01:15:37 -0500 |
commit | c22180a5e2a9e1426fab01d9e54011ec531b1b52 (patch) | |
tree | 0f5f1dd91fca58c1499a67d7184d8bd7c30b29e3 /fs/ksmbd/vfs.h | |
parent | 369c1634cc7ae8645a5cba4c7eb874755c2a6a07 (diff) | |
download | linux-stable-c22180a5e2a9e1426fab01d9e54011ec531b1b52.tar.gz linux-stable-c22180a5e2a9e1426fab01d9e54011ec531b1b52.tar.bz2 linux-stable-c22180a5e2a9e1426fab01d9e54011ec531b1b52.zip |
ksmbd: constify struct path
... in particular, there should never be a non-const pointers to
any file->f_path.
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/vfs.h')
-rw-r--r-- | fs/ksmbd/vfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/vfs.h b/fs/ksmbd/vfs.h index 70da4c0ba7ad..d7542a2dab52 100644 --- a/fs/ksmbd/vfs.h +++ b/fs/ksmbd/vfs.h @@ -85,7 +85,7 @@ int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id); int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name); int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, const char *newname); -int ksmbd_vfs_getattr(struct path *path, struct kstat *stat); +int ksmbd_vfs_getattr(const struct path *path, struct kstat *stat); int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, char *newname); int ksmbd_vfs_truncate(struct ksmbd_work *work, |