diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2013-12-24 14:19:26 -0500 |
---|---|---|
committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2013-12-31 13:32:24 -0500 |
commit | 917edad5d1d62070436b74ecbf5ea019b651ff69 (patch) | |
tree | 6f1c49323619289dc992a5163a8f2041d5cfa329 /net/ceph | |
parent | cc10df4a3a5c34cb1d5b635ac70dd1fc406153ce (diff) |
crush: CHOOSE_LEAF -> CHOOSELEAF throughout
This aligns the internal identifier names with the user-visible names in
the decompiled crush map language.
Reflects ceph.git commit caa0e22e15e4226c3671318ba1f61314bf6da2a6.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/crush/mapper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c index a1acdea935bf..e9256a30e60d 100644 --- a/net/ceph/crush/mapper.c +++ b/net/ceph/crush/mapper.c | |||
@@ -666,25 +666,25 @@ int crush_do_rule(const struct crush_map *map, | |||
666 | choose_tries = curstep->arg1; | 666 | choose_tries = curstep->arg1; |
667 | break; | 667 | break; |
668 | 668 | ||
669 | case CRUSH_RULE_SET_CHOOSE_LEAF_TRIES: | 669 | case CRUSH_RULE_SET_CHOOSELEAF_TRIES: |
670 | if (curstep->arg1 > 0) | 670 | if (curstep->arg1 > 0) |
671 | choose_leaf_tries = curstep->arg1; | 671 | choose_leaf_tries = curstep->arg1; |
672 | break; | 672 | break; |
673 | 673 | ||
674 | case CRUSH_RULE_CHOOSE_LEAF_FIRSTN: | 674 | case CRUSH_RULE_CHOOSELEAF_FIRSTN: |
675 | case CRUSH_RULE_CHOOSE_FIRSTN: | 675 | case CRUSH_RULE_CHOOSE_FIRSTN: |
676 | firstn = 1; | 676 | firstn = 1; |
677 | /* fall through */ | 677 | /* fall through */ |
678 | case CRUSH_RULE_CHOOSE_LEAF_INDEP: | 678 | case CRUSH_RULE_CHOOSELEAF_INDEP: |
679 | case CRUSH_RULE_CHOOSE_INDEP: | 679 | case CRUSH_RULE_CHOOSE_INDEP: |
680 | if (wsize == 0) | 680 | if (wsize == 0) |
681 | break; | 681 | break; |
682 | 682 | ||
683 | recurse_to_leaf = | 683 | recurse_to_leaf = |
684 | curstep->op == | 684 | curstep->op == |
685 | CRUSH_RULE_CHOOSE_LEAF_FIRSTN || | 685 | CRUSH_RULE_CHOOSELEAF_FIRSTN || |
686 | curstep->op == | 686 | curstep->op == |
687 | CRUSH_RULE_CHOOSE_LEAF_INDEP; | 687 | CRUSH_RULE_CHOOSELEAF_INDEP; |
688 | 688 | ||
689 | /* reset output */ | 689 | /* reset output */ |
690 | osize = 0; | 690 | osize = 0; |