diff options
author | Sage Weil <sage@newdream.net> | 2009-11-07 00:37:01 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-07 01:48:49 +0100 |
commit | be330083296903d65e59f532bb1ce1d659d732b0 (patch) | |
tree | 2360c43fc8076b6304a42c4fe623d09959fefd93 /src/crush/crush.h | |
parent | osd: This logic is slightly less confusing without the always-true 'full' param (diff) | |
download | ceph-be330083296903d65e59f532bb1ce1d659d732b0.tar.xz ceph-be330083296903d65e59f532bb1ce1d659d732b0.zip |
crush: no more static inline
Diffstat (limited to 'src/crush/crush.h')
-rw-r--r-- | src/crush/crush.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crush/crush.h b/src/crush/crush.h index 9ac7e091126..92c6b3c3a57 100644 --- a/src/crush/crush.h +++ b/src/crush/crush.h @@ -97,16 +97,7 @@ enum { CRUSH_BUCKET_TREE = 3, CRUSH_BUCKET_STRAW = 4 }; -static inline const char *crush_bucket_alg_name(int alg) -{ - switch (alg) { - case CRUSH_BUCKET_UNIFORM: return "uniform"; - case CRUSH_BUCKET_LIST: return "list"; - case CRUSH_BUCKET_TREE: return "tree"; - case CRUSH_BUCKET_STRAW: return "straw"; - default: return "unknown"; - } -} +extern const char *crush_bucket_alg_name(int alg); struct crush_bucket { __s32 id; /* this'll be negative */ |