Repository navigation
Commit ea3edd4
block: remove __bdevname
There is no good reason for __bdevname to exist. Just open code
printing the string in the callers. For three of them the format
string can be trivially merged into existing printk statements,
and in init/do_mounts.c we can at least do the scnprintf once at
the start of the function, and unconditional of CONFIG_BLOCK to
make the output for tiny configfs a little more helpful.
Acked-by: Theodore Ts'o <tytso@mit.edu> # for ext4
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent d2332c5 commit ea3edd4
6 files changed
Lines changed: 9 additions & 33 deletions
File tree
- block
- drivers/md
- fs
- ext4
- reiserfs
- include/linux
- init
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 60 | | |
75 | 61 | | |
76 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
2494 | | - | |
2495 | 2494 | | |
2496 | 2495 | | |
2497 | 2496 | | |
2498 | 2497 | | |
2499 | | - | |
| 2498 | + | |
| 2499 | + | |
2500 | 2500 | | |
2501 | 2501 | | |
2502 | 2502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
931 | 930 | | |
932 | 931 | | |
933 | 932 | | |
934 | 933 | | |
935 | 934 | | |
936 | 935 | | |
937 | 936 | | |
938 | | - | |
939 | | - | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
2602 | | - | |
2603 | 2602 | | |
2604 | 2603 | | |
2605 | 2604 | | |
| |||
2621 | 2620 | | |
2622 | 2621 | | |
2623 | 2622 | | |
2624 | | - | |
2625 | | - | |
| 2623 | + | |
| 2624 | + | |
2626 | 2625 | | |
2627 | 2626 | | |
2628 | 2627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
2702 | | - | |
2703 | 2702 | | |
2704 | 2703 | | |
2705 | 2704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | 432 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | 433 | | |
| 434 | + | |
| 435 | + | |
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
| |||
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | 452 | | |
458 | 453 | | |
459 | 454 | | |
| |||
476 | 471 | | |
477 | 472 | | |
478 | 473 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 474 | | |
483 | 475 | | |
484 | 476 | | |
| |||
0 commit comments