Skip to content

Commit 75d519b

Browse files
palismfrench
authored andcommitted
cifs: Do not query WSL EAs for native SMB symlink
WSL EAs are not required for native SMB symlinks, so do not query them from server. Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b62a206 commit 75d519b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/smb/client/smb2inode.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,11 @@ int smb2_query_path_info(const unsigned int xid,
10581058
* Skip SMB2_OP_GET_REPARSE if symlink already parsed in create
10591059
* response.
10601060
*/
1061-
if (data->reparse.tag != IO_REPARSE_TAG_SYMLINK)
1061+
if (data->reparse.tag != IO_REPARSE_TAG_SYMLINK) {
10621062
cmds[num_cmds++] = SMB2_OP_GET_REPARSE;
1063-
if (!tcon->posix_extensions)
1064-
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
1063+
if (!tcon->posix_extensions)
1064+
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
1065+
}
10651066

10661067
oparms = CIFS_OPARMS(cifs_sb, tcon, full_path,
10671068
FILE_READ_ATTRIBUTES |

0 commit comments

Comments
 (0)