mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 07:08:21 -04:00
libceph: decode CRUSH device/bucket types and names
These would be matched with the provided client location to calculate the locality value. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jeff Layton <jlayton@kernel.org>
This commit is contained in:
@@ -301,6 +301,12 @@ struct crush_map {
|
||||
|
||||
__u32 *choose_tries;
|
||||
#else
|
||||
/* device/bucket type id -> type name (CrushWrapper::type_map) */
|
||||
struct rb_root type_names;
|
||||
|
||||
/* device/bucket id -> name (CrushWrapper::name_map) */
|
||||
struct rb_root names;
|
||||
|
||||
/* CrushWrapper::choose_args */
|
||||
struct rb_root choose_args;
|
||||
#endif
|
||||
@@ -342,4 +348,10 @@ struct crush_work {
|
||||
struct crush_work_bucket **work; /* Per-bucket working store */
|
||||
};
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/* osdmap.c */
|
||||
void clear_crush_names(struct rb_root *root);
|
||||
void clear_choose_args(struct crush_map *c);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user