General packing of structs

Get back some memory/cachelines by packing any leftover static fields together.

Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
Kozlowski Mateusz
2021-03-15 14:45:59 +01:00
parent 642527d72a
commit fdd6b88cc4
16 changed files with 90 additions and 87 deletions

View File

@@ -27,6 +27,9 @@ struct ocf_cache_info {
uint8_t volume_type;
/*!< Cache volume type */
uint8_t state;
/*!< Cache state (running/flushing/stopping etc...) */
uint32_t size;
/*!< Actual cache size (in cache lines) */
@@ -69,9 +72,6 @@ struct ocf_cache_info {
set as a result of reaching IO error threshold */
} fallback_pt;
uint8_t state;
/*!< Cache state (running/flushing/stopping etc...) */
ocf_eviction_t eviction_policy;
/*!< Eviction policy selected */