cifs: Remove struct reparse_posix_data from struct cifs_open_info_data
authorPali Rohár <pali@kernel.org>
Sat, 28 Sep 2024 12:13:44 +0000 (14:13 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Jan 2025 23:12:56 +0000 (17:12 -0600)
commit65ccccee4eb1a8147a3242238f7730bd8359077e
tree70108db83742c072a8f75ab24f7c90754610f6ec
parent24cf72976acee4b731c7c3ef2080e8535441fa3b
cifs: Remove struct reparse_posix_data from struct cifs_open_info_data

Linux SMB client already supports more reparse point types but only the
reparse_posix_data is defined in union of struct cifs_open_info_data.
This union is currently used as implicit casting between point types.

With this code style, it hides information that union is used for pointer
casting, and just in mknod_nfs() and posix_reparse_to_fattr() functions.

Other reparse point buffers do not use this kind of casting. So remove
reparse_posix_data from reparse part of struct cifs_open_info_data and for
all cases of reparse buffer use just struct reparse_data_buffer *buf.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/reparse.c