From: Sang-Heon Jeon <ekffu200098@gmail.com>
To: sfrench@samba.org
Cc: linux-cifs@vger.kernel.org, Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: [RFC PATCH 1/2] smb: client: export SMB2_notify_init for directory change tracking
Date: Tue, 16 Sep 2025 22:34:36 +0900 [thread overview]
Message-ID: <20250916133437.713064-2-ekffu200098@gmail.com> (raw)
In-Reply-To: <20250916133437.713064-1-ekffu200098@gmail.com>
Export SMB2_notify_init() to support directory change tracking
feature. It will be used by upcoming notify.c module.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
fs/smb/client/smb2pdu.c | 2 +-
fs/smb/client/smb2proto.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c
index c3b9d3f6210f..4e922cb32110 100644
--- a/fs/smb/client/smb2pdu.c
+++ b/fs/smb/client/smb2pdu.c
@@ -3955,7 +3955,7 @@ SMB2_get_srv_num(const unsigned int xid, struct cifs_tcon *tcon,
* See MS-SMB2 2.2.35 and 2.2.36
*/
-static int
+int
SMB2_notify_init(const unsigned int xid, struct smb_rqst *rqst,
struct cifs_tcon *tcon, struct TCP_Server_Info *server,
u64 persistent_fid, u64 volatile_fid,
diff --git a/fs/smb/client/smb2proto.h b/fs/smb/client/smb2proto.h
index b3f1398c9f79..15f46aee4d17 100644
--- a/fs/smb/client/smb2proto.h
+++ b/fs/smb/client/smb2proto.h
@@ -175,6 +175,10 @@ extern int SMB2_ioctl_init(struct cifs_tcon *tcon,
char *in_data, u32 indatalen,
__u32 max_response_size);
extern void SMB2_ioctl_free(struct smb_rqst *rqst);
+extern int SMB2_notify_init(const unsigned int xid, struct smb_rqst *rqst,
+ struct cifs_tcon *tcon, struct TCP_Server_Info *server,
+ u64 persistent_fid, u64 volatile_fid,
+ u32 completion_filter, bool watch_tree);
extern int SMB2_change_notify(const unsigned int xid, struct cifs_tcon *tcon,
u64 persistent_fid, u64 volatile_fid, bool watch_tree,
u32 completion_filter, u32 max_out_data_len,
--
2.43.0
next prev parent reply other threads:[~2025-09-16 13:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 13:34 [RFC PATCH 0/2] smb: client: support directory change tracking Sang-Heon Jeon
2025-09-16 13:34 ` Sang-Heon Jeon [this message]
2025-09-16 13:34 ` [RFC PATCH 2/2] smb: client: add directory change tracking via SMB2 Change Notify Sang-Heon Jeon
2025-09-27 1:03 ` Sang-Heon Jeon
2025-09-27 8:39 ` Amir Goldstein
2025-09-29 16:51 ` Sang-Heon Jeon
2025-09-29 17:06 ` Amir Goldstein
2025-10-17 4:05 ` Sang-Heon Jeon
2025-10-23 15:30 ` Amir Goldstein
2025-10-28 16:13 ` Sang-Heon Jeon
2025-10-29 12:39 ` Amir Goldstein
2025-10-29 17:13 ` Sang-Heon Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250916133437.713064-2-ekffu200098@gmail.com \
--to=ekffu200098@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=sfrench@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox