summaryrefslogtreecommitdiff
path: root/fs/ksmbd/oplock.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-02-24 11:03:41 +0900
committerSteve French <stfrench@microsoft.com>2022-04-14 20:56:13 -0500
commit50f500b7f6335404b18bbffa93e3a905a08d061a (patch)
tree2b0c2fb9d19cd467acd02ade9bb8ab58e2cd8983 /fs/ksmbd/oplock.h
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (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/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 */