]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cifs: Do not query WSL EAs for native SMB symlink
authorPali Rohár <pali@kernel.org>
Thu, 30 Jan 2025 21:33:27 +0000 (22:33 +0100)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Jul 2025 21:59:59 +0000 (16:59 -0500)
WSL EAs are not required for native SMB symlinks, so do not query them from server.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2inode.c

index a11a2a693c519447b099fafd74be241ae422045a..35d00f5aefaec20cb94a6bb221b896d2b1234bba 100644 (file)
@@ -1058,10 +1058,11 @@ int smb2_query_path_info(const unsigned int xid,
                 * Skip SMB2_OP_GET_REPARSE if symlink already parsed in create
                 * response.
                 */
-               if (data->reparse.tag != IO_REPARSE_TAG_SYMLINK)
+               if (data->reparse.tag != IO_REPARSE_TAG_SYMLINK) {
                        cmds[num_cmds++] = SMB2_OP_GET_REPARSE;
-               if (!tcon->posix_extensions)
-                       cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
+                       if (!tcon->posix_extensions)
+                               cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
+               }
 
                oparms = CIFS_OPARMS(cifs_sb, tcon, full_path,
                                     FILE_READ_ATTRIBUTES |