Commit 4c46501
block: move holder_dir from disk to part0
Move disk->holder_dir to part0->holder_dir. Kill now mostly
superflous bdev_get_holder().
While at it, kill superflous kobject_get/put() around holder_dir,
slave_dir and cmd_filter creation and collapse
disk_sysfs_add_subdirs() into register_disk(). These serve no purpose
but obfuscating the code.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>1 parent b7db995 commit 4c46501
File tree
4 files changed
+6
-29
lines changed- block
- fs
- partitions
- include/linux
4 files changed
+6
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | 214 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 215 | + | |
| 216 | + | |
220 | 217 | | |
221 | | - | |
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
| |||
231 | 227 | | |
232 | 228 | | |
233 | 229 | | |
234 | | - | |
235 | 230 | | |
236 | 231 | | |
237 | 232 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | 551 | | |
560 | 552 | | |
561 | 553 | | |
| |||
608 | 600 | | |
609 | 601 | | |
610 | 602 | | |
611 | | - | |
| 603 | + | |
612 | 604 | | |
613 | 605 | | |
614 | 606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | 308 | | |
319 | 309 | | |
320 | 310 | | |
| |||
464 | 454 | | |
465 | 455 | | |
466 | 456 | | |
467 | | - | |
| 457 | + | |
| 458 | + | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
| |||
592 | 583 | | |
593 | 584 | | |
594 | 585 | | |
595 | | - | |
| 586 | + | |
596 | 587 | | |
597 | 588 | | |
598 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
0 commit comments