]> www.infradead.org Git - users/dwmw2/linux.git/commit
cifs: Simplify reparse point check in cifs_query_path_info() function
authorPali Rohár <pali@kernel.org>
Thu, 26 Dec 2024 13:56:33 +0000 (14:56 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Jan 2025 23:20:40 +0000 (17:20 -0600)
commit32ba03042ab2618f2622e4dae57ca802ac982e39
treed70132f9a103cd0bcafefb7c56dc6c27f38f8bf7
parent65c49767dd4fc058673f9259fda1772fd398eaa7
cifs: Simplify reparse point check in cifs_query_path_info() function

For checking if path is reparse point and setting data->reparse_point
member, it is enough to check if ATTR_REPARSE is present.

It is not required to call CIFS_open() without OPEN_REPARSE_POINT and
checking for -EOPNOTSUPP error code.

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>
fs/smb/client/smb1ops.c