mapper.h 453 B

123456789101112131415161718192021
  1. #ifndef CEPH_CRUSH_MAPPER_H
  2. #define CEPH_CRUSH_MAPPER_H
  3. /*
  4. * CRUSH functions for find rules and then mapping an input to an
  5. * output set.
  6. *
  7. * LGPL2
  8. */
  9. #include "crush.h"
  10. extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size);
  11. extern int crush_do_rule(const struct crush_map *map,
  12. int ruleno,
  13. int x, int *result, int result_max,
  14. int forcefeed, /* -1 for none */
  15. const __u32 *weights);
  16. #endif