linux/net/ceph/crush/crush.c

// SPDX-License-Identifier: GPL-2.0
#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)
{}

/**
 * crush_get_bucket_item_weight - Get weight of an item in given bucket
 * @b: bucket pointer
 * @p: item index in bucket
 */
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)
{}

/**
 * crush_destroy - Destroy a crush_map
 * @map: crush_map pointer
 */
void crush_destroy(struct crush_map *map)
{}

void crush_destroy_rule(struct crush_rule *rule)
{}