summaryrefslogtreecommitdiffstats
path: root/include/linux/crush/mapper.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-05-07 15:38:35 -0700
committerSage Weil <sage@inktank.com>2012-05-07 15:38:35 -0700
commit8b12d47b80c7a34dffdd98244d99316db490ec58 (patch)
treefb97986bc823ebcce487d573fc83ee3b1c8f5f98 /include/linux/crush/mapper.h
parente49bf4c51cbe27439c00516d4297193d45dd4097 (diff)
downloadlinux-8b12d47b80c7a34dffdd98244d99316db490ec58.tar.gz
linux-8b12d47b80c7a34dffdd98244d99316db490ec58.tar.xz
crush: clean up types, const-ness
Move various types from int -> __u32 (or similar), and add const as appropriate. This reflects changes that have been present in the userland implementation for some time. Reviewed-by: Alex Elder <elder@inktank.com> Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/crush/mapper.h')
-rw-r--r--include/linux/crush/mapper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/crush/mapper.h b/include/linux/crush/mapper.h
index c46b99c18bb0..9322ab8bccd8 100644
--- a/include/linux/crush/mapper.h
+++ b/include/linux/crush/mapper.h
@@ -10,11 +10,11 @@
#include "crush.h"
-extern int crush_find_rule(struct crush_map *map, int pool, int type, int size);
-extern int crush_do_rule(struct crush_map *map,
+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,
int ruleno,
int x, int *result, int result_max,
int forcefeed, /* -1 for none */
- __u32 *weights);
+ const __u32 *weights);
#endif