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

@@ -41,13 +41,13 @@ typedef int (*ocf_mlst_cmp)(struct ocf_cache *cache,
struct ocf_lst {
struct ocf_lst_entry *head;
ocf_cache_line_t invalid;
ocf_mlst_getter getter;
ocf_mlst_cmp cmp;
struct ocf_cache *cache;
struct {
uint32_t active : 1;
} flags;
ocf_mlst_getter getter;
ocf_mlst_cmp cmp;
struct ocf_cache *cache;
};
static inline void ocf_lst_init_entry(struct ocf_lst *lst,