diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-07-24 17:43:49 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-08-01 17:46:44 +0300 |
commit | e17e8969f5c59a10083af5e260bdad6026872203 (patch) | |
tree | 5f1d1a3efc01a5970aa653ea7d5dba3e1d36de42 /include/linux/crush | |
parent | 4690faf00cf838392ce038202a85ac0d5f1df598 (diff) | |
download | linux-e17e8969f5c59a10083af5e260bdad6026872203.tar.xz |
libceph: fallback for when there isn't a pool-specific choose_arg
There is now a fallback to a choose_arg index of -1 if there isn't
a pool-specific choose_arg set. If you create a per-pool weight-set,
that works for that pool. Otherwise we try the compat/default one. If
that doesn't exist either, then we use the normal CRUSH weights.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'include/linux/crush')
-rw-r--r-- | include/linux/crush/crush.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/crush/crush.h b/include/linux/crush/crush.h index 92e165d417a6..07eed95e10c7 100644 --- a/include/linux/crush/crush.h +++ b/include/linux/crush/crush.h @@ -193,7 +193,7 @@ struct crush_choose_arg { struct crush_choose_arg_map { #ifdef __KERNEL__ struct rb_node node; - u64 choose_args_index; + s64 choose_args_index; #endif struct crush_choose_arg *args; /*!< replacement for each bucket in the crushmap */ |