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/vfs_cache.c | |
parent | ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (diff) |
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/vfs_cache.c')
-rw-r--r-- | fs/ksmbd/vfs_cache.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ksmbd/vfs_cache.c b/fs/ksmbd/vfs_cache.c index 29c1db66bd0f..0974d2e972b9 100644 --- a/fs/ksmbd/vfs_cache.c +++ b/fs/ksmbd/vfs_cache.c @@ -328,7 +328,6 @@ static void __ksmbd_close_fd(struct ksmbd_file_table *ft, struct ksmbd_file *fp) kfree(smb_lock); } - kfree(fp->filename); if (ksmbd_stream_fd(fp)) kfree(fp->stream.name); kmem_cache_free(filp_cache, fp); |