]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Remove symlink member from cifs_open_info_data union
authorPali Rohár <pali@kernel.org>
Thu, 26 Dec 2024 13:50:38 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:01:39 +0000 (13:01 +0100)
commitc011482fb5fa867350aaad506d1455b34c1c2e42
treea48c574278bade9f0abf24350cc5ba55298fd552
parentc13e4b0321ed8d91bf43d8d8396f7ee5c06c9bcc
cifs: Remove symlink member from cifs_open_info_data union

[ Upstream commit 65c49767dd4fc058673f9259fda1772fd398eaa7 ]

Member 'symlink' is part of the union in struct cifs_open_info_data. Its
value is assigned on few places, but is always read through another union
member 'reparse_point'. So to make code more readable, always use only
'reparse_point' member and drop whole union structure. No function change.

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>
Stable-dep-of: 9df23801c83d ("smb311: failure to open files of length 1040 when mounting with SMB3.1.1 POSIX extensions")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/cifsglob.h
fs/smb/client/inode.c
fs/smb/client/smb1ops.c