diff options
author | Sage Weil <sage@newdream.net> | 2009-11-07 00:39:26 (GMT) |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-07 00:39:26 (GMT) |
commit | c6cf726316abd613cfb7c325d950f3629f964ec6 (patch) | |
tree | 446a686988656a355ee7ff94a43912c94f36ac63 /fs/ceph/crush/crush.c | |
parent | 1bdb70e59026838a79f77c440f8fe480a66e65e8 (diff) | |
download | linux-fsl-qoriq-c6cf726316abd613cfb7c325d950f3629f964ec6.tar.xz |
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.c')
-rw-r--r-- | fs/ceph/crush/crush.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/ceph/crush/crush.c b/fs/ceph/crush/crush.c index 13755cd..fabd302 100644 --- a/fs/ceph/crush/crush.c +++ b/fs/ceph/crush/crush.c @@ -10,6 +10,17 @@ #include "crush.h" +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"; + } +} + /** * crush_get_bucket_item_weight - Get weight of an item in given bucket * @b: bucket pointer |