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

@@ -39,8 +39,6 @@
* @brief Helpful struct to start cache
*/
struct ocf_cache_mngt_init_params {
bool metadata_volatile;
ocf_ctx_t ctx;
/*!< OCF context */
@@ -50,6 +48,8 @@ struct ocf_cache_mngt_init_params {
uint8_t locked;
/*!< Keep cache locked */
bool metadata_volatile;
/**
* @brief initialization state (in case of error, it is used to know
* which assets have to be deallocated in premature exit from function