Go to the documentation of this file. 1 #ifndef CEPH_CRUSH_CRUSH_H
2 #define CEPH_CRUSH_CRUSH_H
4 #include <linux/types.h>
20 #define CRUSH_MAGIC 0x00010000ul
23 #define CRUSH_MAX_DEPTH 10
24 #define CRUSH_MAX_SET 10
54 #define CRUSH_CHOOSE_N 0
55 #define CRUSH_CHOOSE_N_MINUS(x) (-(x))
75 #define crush_rule_size(len) (sizeof(struct crush_rule) + \
76 (len)*sizeof(struct crush_rule_step))
177 static inline int crush_calc_tree_node(
int i)
179 return ((i+1) << 1)-1;