Skip to content

Commit

Permalink
Keep information in the metaslab class to know in which rotor vector …
Browse files Browse the repository at this point in the history
…to place vdevs.

Todo: The guid list should not have a fixed length but be dynamic.
  • Loading branch information
inkdot7 committed Dec 10, 2016
1 parent 19d47cd commit 12917df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/sys/metaslab_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ struct metaslab_class {
/* total deflated space */
uint64_t mc_dspacev[METASLAB_CLASS_ROTORS];
uint64_t mc_histogram[RANGE_TREE_HISTOGRAM_SIZE];

/* Maximum allocation size in each rotor vector category. */
uint64_t mc_rotvec_threshold[METASLAB_CLASS_ROTORS];
/* List of vdev guids to place in each rotor vector category. */
/* Should be a dynamic list. */
uint64_t mc_rotvec_vdev_guids[METASLAB_CLASS_ROTORS][5];
/* vdev types to place in rotor vector category, if no guid match. */
int mc_rotvec_categories[METASLAB_CLASS_ROTORS];
};

/*
Expand Down

0 comments on commit 12917df

Please sign in to comment.