2024-09-09 08:52:07 +00:00
|
|
|
#ifndef CEPH_CRUSH_MAPPER_H
|
|
|
|
#define CEPH_CRUSH_MAPPER_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* CRUSH functions for find rules and then mapping an input to an
|
|
|
|
* output set.
|
|
|
|
*
|
|
|
|
* LGPL2
|
|
|
|
*/
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
#include <linux/crush/crush.h>
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size);
|
|
|
|
extern int crush_do_rule(const struct crush_map *map,
|
2024-09-09 08:52:07 +00:00
|
|
|
int ruleno,
|
|
|
|
int x, int *result, int result_max,
|
2024-09-09 08:57:42 +00:00
|
|
|
const __u32 *weights, int weight_max,
|
|
|
|
int *scratch);
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
#endif
|