Commit 772d592
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>1 parent c825f6b commit 772d592
1 file changed
Lines changed: 19 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 119 | + | |
| 120 | + | |
141 | 121 | | |
142 | 122 | | |
143 | 123 | | |
144 | 124 | | |
145 | 125 | | |
146 | 126 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 127 | + | |
150 | 128 | | |
151 | 129 | | |
152 | | - | |
153 | | - | |
| 130 | + | |
| 131 | + | |
154 | 132 | | |
155 | 133 | | |
156 | 134 | | |
| |||
172 | 150 | | |
173 | 151 | | |
174 | 152 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
180 | 167 | | |
181 | 168 | | |
182 | 169 | | |
| |||
0 commit comments