summaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/oplock.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-02-24 03:03:41 +0100
committerSteve French <stfrench@microsoft.com>2022-04-15 03:56:13 +0200
commit50f500b7f6335404b18bbffa93e3a905a08d061a (patch)
tree2b0c2fb9d19cd467acd02ade9bb8ab58e2cd8983 /fs/ksmbd/oplock.h
parentLinux 5.18-rc2 (diff)
downloadlinux-50f500b7f6335404b18bbffa93e3a905a08d061a.tar.xz
linux-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/oplock.h')
-rw-r--r--fs/ksmbd/oplock.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ksmbd/oplock.h b/fs/ksmbd/oplock.h
index 0cf7a2b5bbc0..09753448f779 100644
--- a/fs/ksmbd/oplock.h
+++ b/fs/ksmbd/oplock.h
@@ -124,6 +124,4 @@ struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn,
int find_same_lease_key(struct ksmbd_session *sess, struct ksmbd_inode *ci,
struct lease_ctx_info *lctx);
void destroy_lease_table(struct ksmbd_conn *conn);
-int smb2_check_durable_oplock(struct ksmbd_file *fp,
- struct lease_ctx_info *lctx, char *name);
#endif /* __KSMBD_OPLOCK_H */