General structure packing
Pack often used structures, so that less memory/cachelines are used Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
#include "ocf_env.h"
|
||||
|
||||
struct env_mpool {
|
||||
int mpool_max;
|
||||
/*!< Max mpool allocation order */
|
||||
|
||||
env_allocator *allocator[env_mpool_max];
|
||||
/*!< OS handle to memory pool */
|
||||
|
||||
int mpool_max;
|
||||
/*!< Max mpool allocation order */
|
||||
|
||||
uint32_t hdr_size;
|
||||
/*!< Data header size (constant allocation part) */
|
||||
|
||||
|
@@ -39,17 +39,17 @@ struct _cas_reserve_pool_per_cpu {
|
||||
|
||||
struct cas_reserve_pool {
|
||||
uint32_t limit;
|
||||
char *name;
|
||||
uint32_t entry_size;
|
||||
char *name;
|
||||
struct _cas_reserve_pool_per_cpu *rpools;
|
||||
};
|
||||
|
||||
struct _cas_rpool_pre_alloc_info {
|
||||
struct work_struct ws;
|
||||
struct completion cmpl;
|
||||
struct cas_reserve_pool *rpool_master;
|
||||
cas_rpool_new rpool_new;
|
||||
void *allocator_ctx;
|
||||
struct completion cmpl;
|
||||
int error;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user