diff options
| author | 2026-04-02 14:18:31 +0000 | |
|---|---|---|
| committer | 2026-04-05 19:58:40 -0500 | |
| commit | 3c6c23ed9424cfd5a648863dc058c52094b1b99d (patch) | |
| tree | f7329bde0cee012dcb858c5ee39d78b327e9dfe8 /include/linux/surface_aggregator/ssh:/git@git.zx2c4.com | |
| parent | smb/client: refactor ntstatus_to_dos() to return mapping entry (diff) | |
smb/client: use binary search for NT status to DOS mapping
The ntstatus_to_dos_map[] table is sorted now. Replace the linear search
with binary search to improve lookup performance.
Also remove the sentinel entry as it is no longer needed with ARRAY_SIZE().
Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/surface_aggregator/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
