summaryrefslogtreecommitdiffstats
path: root/fs/ceph/crush/crush.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-06 16:39:26 -0800
committerSage Weil <sage@newdream.net>2009-11-06 16:39:26 -0800
commitc6cf726316abd613cfb7c325d950f3629f964ec6 (patch)
tree446a686988656a355ee7ff94a43912c94f36ac63 /fs/ceph/crush/crush.h
parent1bdb70e59026838a79f77c440f8fe480a66e65e8 (diff)
ceph: make CRUSH hash functions non-inline
These are way to big to be inline. I missed crush/* when doing the inline audit for akpm's review. Signed-off-by: Sage Weil <sage@newdream.net>
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 9ac7e091126..92c6b3c3a57 100644
--- a/fs/ceph/crush/crush.h
+++ b/fs/ceph/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 */