ocf/src/ocf_lru_structs.h
Rafal Stefanowski f22da1cde7 Fix license
Change license to BSD-3-Clause

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-10-28 13:08:50 +02:00

32 lines
518 B
C

/*
* Copyright(c) 2012-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __EVICTION_LRU_STRUCTS_H__
#define __EVICTION_LRU_STRUCTS_H__
struct ocf_lru_meta {
uint32_t prev;
uint32_t next;
uint8_t hot;
} __attribute__((packed));
struct ocf_lru_list {
uint32_t num_nodes;
uint32_t head;
uint32_t tail;
uint32_t num_hot;
uint32_t last_hot;
bool track_hot;
};
struct ocf_lru_part_meta {
struct ocf_lru_list clean;
struct ocf_lru_list dirty;
};
#define OCF_LRU_HOT_RATIO 2
#endif