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

@@ -106,9 +106,6 @@ struct ocf_request {
struct ocf_io_internal ioi;
/*!< OCF IO associated with request */
const struct ocf_engine_callbacks *engine_cbs;
/*!< Engine owning the request */
env_atomic ref_count;
/*!< Reference usage count, once OCF request reaches zero it
* will be de-initialed. Get/Put method are intended to modify
@@ -128,6 +125,9 @@ struct ocf_request {
env_atomic master_remaining;
/*!< Atomic counter for core device */
const struct ocf_engine_callbacks *engine_cbs;
/*!< Engine owning the request */
ocf_cache_t cache;
/*!< Handle to cache instance */