]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: refactor ntstatus_to_dos() to return mapping entry
authorHuiwen He <hehuiwen@kylinos.cn>
Thu, 2 Apr 2026 14:18:30 +0000 (14:18 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
commit772d5920c3d417fc4ba44c0b6fb61ca4f19f5809
treec4168089198a1536963a7596d4d134b81daad48b
parentc825f6b7432a11a801feb5f5783765cf31f2c3ff
smb/client: refactor ntstatus_to_dos() to return mapping entry

Refactor ntstatus_to_dos() to return a pointer to the mapping entry
instead of using output parameters. This allows callers to access all
fields of the entry directly.

In map_smb_to_linux_error(), integrate the printing logic directly
to avoid redundant lookups previously performed by cifs_print_status(),
which is now removed.

Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1maperror.c