Commit 2045364
Andreas Gruenbacher
gfs2: Simplify do_promote
While not immediately obvious, do_promote() returns whether or not there
are any active holders in the queue. But the function description is
confusing, and this information is easy to come by for callers anyway,
so turn do_promote() into a void function.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>1 parent bddb53b commit 2045364
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
486 | 484 | | |
487 | 485 | | |
488 | | - | |
| 486 | + | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
| |||
496 | 494 | | |
497 | 495 | | |
498 | 496 | | |
499 | | - | |
500 | | - | |
501 | | - | |
| 497 | + | |
502 | 498 | | |
503 | | - | |
504 | | - | |
505 | | - | |
| 499 | + | |
| 500 | + | |
506 | 501 | | |
507 | 502 | | |
508 | 503 | | |
| |||
511 | 506 | | |
512 | 507 | | |
513 | 508 | | |
514 | | - | |
515 | 509 | | |
516 | 510 | | |
517 | 511 | | |
| |||
855 | 849 | | |
856 | 850 | | |
857 | 851 | | |
858 | | - | |
| 852 | + | |
| 853 | + | |
859 | 854 | | |
860 | 855 | | |
861 | 856 | | |
| |||
0 commit comments