]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: move file_notify_information to common/fscc.h
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Thu, 6 Nov 2025 10:00:56 +0000 (18:00 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Dec 2025 03:23:03 +0000 (21:23 -0600)
This struct definition is specified in MS-FSCC, and KSMBD will also use it,
so move it into common header file.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifspdu.h
fs/smb/common/fscc.h

index 0e7860f1e9684b74600d73cc4a0ca886018d2056..10e5c1bee17b704fd4c931d992d42c907e1cb43a 100644 (file)
@@ -1358,17 +1358,6 @@ typedef struct smb_com_transaction_change_notify_rsp {
        /* __u8 Pad[3]; */
 } __packed TRANSACT_CHANGE_NOTIFY_RSP;
 
-/*
- * response contains array of the following structures
- * See MS-FSCC 2.7.1
- */
-struct file_notify_information {
-       __le32 NextEntryOffset;
-       __le32 Action;
-       __le32 FileNameLength;
-       __u8  FileName[];
-} __packed;
-
 struct cifs_quota_data {
        __u32   rsrvd1;  /* 0 */
        __u32   sid_size;
index 35dbacdbb9020d6afbd918a48b731a6f01cfda6b..b8e7bb5ddfdd6c955ee4b0f6b8e866036a6e6749 100644 (file)
@@ -144,6 +144,17 @@ typedef struct {
        __le32 DeviceCharacteristics;
 } __packed FILE_SYSTEM_DEVICE_INFO; /* device info level 0x104 */
 
+/*
+ * Response contains array of the following structures
+ * See MS-FSCC 2.7.1
+ */
+struct file_notify_information {
+       __le32 NextEntryOffset;
+       __le32 Action;
+       __le32 FileNameLength;
+       __u8  FileName[];
+} __packed;
+
 /*
  * See POSIX Extensions to MS-FSCC 2.3.2.1
  * Link: https://gitlab.com/samba-team/smb3-posix-spec/-/blob/master/fscc_posix_extensions.md