diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2022-02-24 11:03:41 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-04-14 20:56:13 -0500 |
commit | 50f500b7f6335404b18bbffa93e3a905a08d061a (patch) | |
tree | 2b0c2fb9d19cd467acd02ade9bb8ab58e2cd8983 /fs/ksmbd/misc.h | |
parent | ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (diff) | |
download | lwn-50f500b7f6335404b18bbffa93e3a905a08d061a.tar.gz lwn-50f500b7f6335404b18bbffa93e3a905a08d061a.zip |
ksmbd: remove filename in ksmbd_file
If the filename is change by underlying rename the server, fp->filename
and real filename can be different. This patch remove the uses of
fp->filename in ksmbd and replace it with d_path().
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/misc.h')
-rw-r--r-- | fs/ksmbd/misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ksmbd/misc.h b/fs/ksmbd/misc.h index 253366bd0951..aae2a252945f 100644 --- a/fs/ksmbd/misc.h +++ b/fs/ksmbd/misc.h @@ -14,7 +14,8 @@ struct ksmbd_file; int match_pattern(const char *str, size_t len, const char *pattern); int ksmbd_validate_filename(char *filename); int parse_stream_name(char *filename, char **stream_name, int *s_type); -char *convert_to_nt_pathname(char *filename); +char *convert_to_nt_pathname(struct ksmbd_share_config *share, + struct path *path); int get_nlink(struct kstat *st); void ksmbd_conv_path_to_unix(char *path); void ksmbd_strip_last_slash(char *path); |