]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/client: replace nt_errs with ntstatus_to_dos_map
authorHuiwen He <hehuiwen@kylinos.cn>
Thu, 2 Apr 2026 14:18:29 +0000 (14:18 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
commitc825f6b7432a11a801feb5f5783765cf31f2c3ff
treee38a8f138efe1ca7b22c63b8a588e9787f70bff3
parent415c5b8c9a41e3fc40e0e110c8fadf26c51df5c5
smb/client: replace nt_errs with ntstatus_to_dos_map

The ntstatus_to_dos_map[] array now contains the NT error strings,
making the nt_errs[] array redundant.

Introduce `struct ntstatus_to_dos_err` instead of an anonymous struct.
This allows cifs_print_status() to look up error strings directly
from a single table.

Remove nterr.c, as nt_errs[] was its only functional content.

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/Makefile
fs/smb/client/nterr.c [deleted file]
fs/smb/client/nterr.h
fs/smb/client/smb1maperror.c