Move common user and freelist partition data to a new struct
New structure ocf_part is added to contain all the data common for both user partitions and freelist partition: part_runtime and part_id. ocf_user_part now contains ocf_part structure as well as pointer to cleaning partition runtime metadata (moved out from part_runtime) and user partition config (no change here). Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -77,8 +77,8 @@ struct ocf_cache {
|
||||
|
||||
struct ocf_cache_device *device;
|
||||
|
||||
struct ocf_lst lst_part;
|
||||
struct ocf_user_part user_parts[OCF_IO_CLASS_MAX + 1];
|
||||
struct ocf_lst user_part_list;
|
||||
struct ocf_user_part user_parts[OCF_USER_IO_CLASS_MAX + 1];
|
||||
|
||||
ocf_freelist_t freelist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user