diff options
author | Sage Weil <sage@newdream.net> | 2009-11-06 16:39:26 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-06 16:39:26 -0800 |
commit | c6cf726316abd613cfb7c325d950f3629f964ec6 (patch) | |
tree | 446a686988656a355ee7ff94a43912c94f36ac63 /fs/ceph/crush/crush.c | |
parent | 1bdb70e59026838a79f77c440f8fe480a66e65e8 (diff) | |
download | linux-c6cf726316abd613cfb7c325d950f3629f964ec6.tar.bz2 |
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 13755cdc4fb3..fabd302e5779 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 |