Skip to content

Commit 8f91c5e

Browse files
paliopsiff
authored andcommitted
cifs: Remove duplicate fattr->cf_dtype assignment from wsl_to_fattr() function
[ Upstream commit 840738e ] Commit 8bd25b6 ("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: 8bd25b6 ("smb: client: set correct d_type for reparse DFS/DFSR and mount point") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit 218c3629fb8f2de93164bce03f1141175b0c87a1)
1 parent f82a96e commit 8f91c5e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/smb/client/reparse.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,6 @@ static bool wsl_to_fattr(struct cifs_open_info_data *data,
738738
if (!have_xattr_dev && (tag == IO_REPARSE_TAG_LX_CHR || tag == IO_REPARSE_TAG_LX_BLK))
739739
return false;
740740

741-
fattr->cf_dtype = S_DT(fattr->cf_mode);
742741
return true;
743742
}
744743

0 commit comments

Comments
 (0)