]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: remove filename in ksmbd_file
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 18 Dec 2023 15:32:51 +0000 (00:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:51 +0000 (10:41 +0100)
commit8e32e15840256c647fdfef02f5737a701edb3cb9
tree933c0b0426a8c39ff3393c34f5c6e8af317d95b0
parente9a3251246117c247eb369314ae82934e9f95475
ksmbd: remove filename in ksmbd_file

[ Upstream commit 50f500b7f6335404b18bbffa93e3a905a08d061a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/misc.c
fs/ksmbd/misc.h
fs/ksmbd/oplock.c
fs/ksmbd/oplock.h
fs/ksmbd/smb2pdu.c
fs/ksmbd/vfs.c
fs/ksmbd/vfs_cache.c
fs/ksmbd/vfs_cache.h