From: Ilya Dryomov Date: Wed, 19 Mar 2014 14:58:37 +0000 (+0200) Subject: crush: allow crush rules to set (re)tries counts to 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ed1002f368c63ef79d7f659fcb4368a90098132;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crush: allow crush rules to set (re)tries counts to 0 These two fields are misnomers; they are *retry* counts. Reflects ceph.git commit f17caba8ae0cad7b6f8f35e53e5f73b444696835. Signed-off-by: Ilya Dryomov Reviewed-by: Josh Durgin --- diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c index 074bb2a5e675..b3fb84903b30 100644 --- a/net/ceph/crush/mapper.c +++ b/net/ceph/crush/mapper.c @@ -684,12 +684,12 @@ int crush_do_rule(const struct crush_map *map, break; case CRUSH_RULE_SET_CHOOSE_LOCAL_TRIES: - if (curstep->arg1 > 0) + if (curstep->arg1 >= 0) choose_local_retries = curstep->arg1; break; case CRUSH_RULE_SET_CHOOSE_LOCAL_FALLBACK_TRIES: - if (curstep->arg1 > 0) + if (curstep->arg1 >= 0) choose_local_fallback_retries = curstep->arg1; break;