#ifdef __KERNEL__
# include <linux/slab.h>
# include <linux/crush/crush.h>
#else
# include "crush_compat.h"
# include "crush.h"
#endif
const char *crush_bucket_alg_name(int alg)
{ … }
int crush_get_bucket_item_weight(const struct crush_bucket *b, int p)
{ … }
void crush_destroy_bucket_uniform(struct crush_bucket_uniform *b)
{ … }
void crush_destroy_bucket_list(struct crush_bucket_list *b)
{ … }
void crush_destroy_bucket_tree(struct crush_bucket_tree *b)
{ … }
void crush_destroy_bucket_straw(struct crush_bucket_straw *b)
{ … }
void crush_destroy_bucket_straw2(struct crush_bucket_straw2 *b)
{ … }
void crush_destroy_bucket(struct crush_bucket *b)
{ … }
void crush_destroy(struct crush_map *map)
{ … }
void crush_destroy_rule(struct crush_rule *rule)
{ … }