aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/crush/crush.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/crush/crush.h')
-rw-r--r--fs/ceph/crush/crush.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/ceph/crush/crush.h b/fs/ceph/crush/crush.h
index 9ac7e091126f..92c6b3c3a571 100644
--- a/fs/ceph/crush/crush.h
+++ b/fs/ceph/crush/crush.h
@@ -97,16 +97,7 @@ enum {
97 CRUSH_BUCKET_TREE = 3, 97 CRUSH_BUCKET_TREE = 3,
98 CRUSH_BUCKET_STRAW = 4 98 CRUSH_BUCKET_STRAW = 4
99}; 99};
100static inline const char *crush_bucket_alg_name(int alg) 100extern const char *crush_bucket_alg_name(int alg);
101{
102 switch (alg) {
103 case CRUSH_BUCKET_UNIFORM: return "uniform";
104 case CRUSH_BUCKET_LIST: return "list";
105 case CRUSH_BUCKET_TREE: return "tree";
106 case CRUSH_BUCKET_STRAW: return "straw";
107 default: return "unknown";
108 }
109}
110 101
111struct crush_bucket { 102struct crush_bucket {
112 __s32 id; /* this'll be negative */ 103 __s32 id; /* this'll be negative */