Commit ca4b2c46 authored by Ralph Boehme's avatar Ralph Boehme Committed by Steve French
Browse files

fs/smb/client: avoid querying SMB2_OP_QUERY_WSL_EA for SMB3 POSIX



Avoid extra roundtrip

Cc: stable@vger.kernel.org
Acked-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: default avatarRalph Boehme <slow@samba.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 40384c84
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -943,6 +943,7 @@ int smb2_query_path_info(const unsigned int xid,
		if (rc || !data->reparse_point)
			goto out;

		if (!tcon->posix_extensions)
			cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
		/*
		 * Skip SMB2_OP_GET_REPARSE if symlink already parsed in create