Skip to content

Commit 2948f0d

Browse files
paliSteve French
authored andcommitted
cifs: Remove duplicate struct reparse_symlink_data and SYMLINK_FLAG_RELATIVE
In file common/smb2pdu.h is defined struct reparse_symlink_data_buffer which is same as struct reparse_symlink_data and is used in the whole code. So remove duplicate struct reparse_symlink_data from client/cifspdu.h. In file common/smb2pdu.h is defined also SYMLINK_FLAG_RELATIVE constant, so remove duplication from client/cifspdu.h. Signed-off-by: Pali Rohár <pali@kernel.org> Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 10e6fe5 commit 2948f0d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

fs/smb/client/cifspdu.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,22 +1484,6 @@ struct file_notify_information {
14841484
__u8 FileName[];
14851485
} __attribute__((packed));
14861486

1487-
/* For IO_REPARSE_TAG_SYMLINK */
1488-
struct reparse_symlink_data {
1489-
__le32 ReparseTag;
1490-
__le16 ReparseDataLength;
1491-
__u16 Reserved;
1492-
__le16 SubstituteNameOffset;
1493-
__le16 SubstituteNameLength;
1494-
__le16 PrintNameOffset;
1495-
__le16 PrintNameLength;
1496-
__le32 Flags;
1497-
char PathBuffer[];
1498-
} __attribute__((packed));
1499-
1500-
/* Flag above */
1501-
#define SYMLINK_FLAG_RELATIVE 0x00000001
1502-
15031487
/* For IO_REPARSE_TAG_NFS */
15041488
#define NFS_SPECFILE_LNK 0x00000000014B4E4C
15051489
#define NFS_SPECFILE_CHR 0x0000000000524843

0 commit comments

Comments
 (0)