Commit 6e7c177
fs: simplify get_filesystem_list / get_all_fs_names
Just output the '\0' separate list of supported file systems for block
devices directly rather than going through a pointless round of string
manipulation.
Based on an earlier patch from Al Viro <viro@zeniv.linux.org.uk>.
Vivek:
Modified list_bdev_fs_names() and split_fs_names() to return number of
null terminted strings to caller. Callers now use that information to
loop through all the strings instead of relying on one extra null char
being present at the end.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent f9259be commit 6e7c177
3 files changed
Lines changed: 39 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | | - | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3622 | 3622 | | |
3623 | 3623 | | |
3624 | 3624 | | |
3625 | | - | |
| 3625 | + | |
3626 | 3626 | | |
3627 | 3627 | | |
3628 | 3628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 343 | + | |
| 344 | + | |
355 | 345 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
364 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
365 | 355 | | |
366 | | - | |
| 356 | + | |
367 | 357 | | |
368 | 358 | | |
369 | 359 | | |
| |||
409 | 399 | | |
410 | 400 | | |
411 | 401 | | |
| 402 | + | |
412 | 403 | | |
413 | 404 | | |
414 | 405 | | |
415 | 406 | | |
416 | | - | |
| 407 | + | |
417 | 408 | | |
418 | | - | |
| 409 | + | |
419 | 410 | | |
420 | | - | |
| 411 | + | |
421 | 412 | | |
422 | 413 | | |
423 | 414 | | |
| |||
450 | 441 | | |
451 | 442 | | |
452 | 443 | | |
453 | | - | |
| 444 | + | |
454 | 445 | | |
455 | 446 | | |
456 | 447 | | |
| |||
551 | 542 | | |
552 | 543 | | |
553 | 544 | | |
| 545 | + | |
554 | 546 | | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | | - | |
| 550 | + | |
559 | 551 | | |
560 | | - | |
| 552 | + | |
| 553 | + | |
561 | 554 | | |
562 | 555 | | |
563 | 556 | | |
| |||
0 commit comments