Commit 840738ea authored by Pali Rohár's avatar Pali Rohár Committed by Steve French
Browse files

cifs: Remove duplicate fattr->cf_dtype assignment from wsl_to_fattr() function



Commit 8bd25b61 ("smb: client: set correct d_type for reparse DFS/DFSR
and mount point") deduplicated assignment of fattr->cf_dtype member from
all places to end of the function cifs_reparse_point_to_fattr(). The only
one missing place which was not deduplicated is wsl_to_fattr(). Fix it.

Fixes: 8bd25b61 ("smb: client: set correct d_type for reparse DFS/DFSR and mount point")
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 306cb65b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1172,7 +1172,6 @@ static bool wsl_to_fattr(struct cifs_open_info_data *data,
	if (!have_xattr_dev && (tag == IO_REPARSE_TAG_LX_CHR || tag == IO_REPARSE_TAG_LX_BLK))
		return false;

	fattr->cf_dtype = S_DT(fattr->cf_mode);
	return true;
}