Commit 6ccbf86
btrfs-progs: merge device id comparators
There are two similar but slightly different implementations of devid
comparison functions: cmp_device_id() in filesystem.c and _cmp_device_by_id()
in mkfs/main.c. Merge them as cmp_device_id in common/device-utils.c.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 5a87a42 commit 6ccbf86
File tree
4 files changed
+15
-23
lines changed- cmds
- common
- mkfs
4 files changed
+15
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | 262 | | |
278 | 263 | | |
279 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | 515 | | |
523 | 516 | | |
524 | 517 | | |
| |||
532 | 525 | | |
533 | 526 | | |
534 | 527 | | |
535 | | - | |
| 528 | + | |
536 | 529 | | |
537 | 530 | | |
538 | 531 | | |
| |||
0 commit comments