#define CRUSH_MAGIC 0x00010000ul /* for detecting algorithm revisions */
-
#define CRUSH_MAX_DEPTH 10 /* max crush hierarchy depth */
#define CRUSH_MAX_DEVICE_WEIGHT (100u * 0x10000u)
* true if device is marked "out" (failed, fully offloaded)
* of the cluster
*/
-static int is_out(const struct crush_map *map, const __u32 *weight, int weight_max, int item, int x)
+static int is_out(const struct crush_map *map,
+ const __u32 *weight, int weight_max,
+ int item, int x)
{
if (item >= weight_max)
return 1;
out2, outpos,
recurse_tries, 0,
local_tries,
- local_fallback_tries,
+ local_fallback_tries,
0,
NULL) <= outpos)
/* didn't get leaf */
if (!reject) {
/* out? */
if (itemtype == 0)
- reject = is_out(map, weight, weight_max,
+ reject = is_out(map, weight,
+ weight_max,
item, x);
else
reject = 0;