Move eviction files to new locations
src/eviction/lru.c -> src/ocf_lru.c src/eviction/lru.h -> src/ocf_lru.h src/eviction/lru_structs.h -> src/ocf_lru_structs.h src/eviction/eviction.c -> src/ocf_space.c src/eviction/eviction.h -> src/ocf_space.h .. as well as corresponding UT files. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com> ... in UT as well Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
#include "../ocf_cache_priv.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
#include "../ocf_queue_priv.h"
|
||||
|
||||
#ifndef __OCF_METADATA_CONCURRENCY_H__
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "../utils/utils_refcnt.h"
|
||||
#include "../ocf_request.h"
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
|
||||
enum ocf_io_if_type {
|
||||
/* Public OCF IO interfaces to be set by user */
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#include "../utils/utils_cleaner.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
#include "../promotion/promotion.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "../utils/utils_list.h"
|
||||
#include "../cleaning/cleaning.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
|
||||
#define OCF_NUM_PARTITIONS OCF_USER_IO_CLASS_MAX + 2
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#define __METADATA_STRUCTS_H__
|
||||
|
||||
#include "metadata_common.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
#include "../cleaning/cleaning.h"
|
||||
#include "../ocf_request.h"
|
||||
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include "../utils/utils_refcnt.h"
|
||||
#include "../utils/utils_async_lock.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "../ocf_ctx_priv.h"
|
||||
#include "../cleaning/cleaning.h"
|
||||
#include "../promotion/ops.h"
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../engine/cache_engine.h"
|
||||
#include "../ocf_request.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "../ocf_logger_priv.h"
|
||||
#include "../ocf_queue_priv.h"
|
||||
#include "../engine/engine_common.h"
|
||||
|
@@ -9,7 +9,7 @@
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../engine/cache_engine.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "ocf_env.h"
|
||||
|
||||
static uint64_t _ocf_mngt_count_user_parts_min_size(struct ocf_cache *cache)
|
||||
|
@@ -3,8 +3,8 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#include "eviction.h"
|
||||
#include "lru.h"
|
||||
#include "ocf_space.h"
|
||||
#include "ocf_lru.h"
|
||||
#include "../utils/utils_cleaner.h"
|
||||
#include "../utils/utils_cache_line.h"
|
||||
#include "../concurrency/ocf_concurrency.h"
|
@@ -5,8 +5,8 @@
|
||||
#ifndef __EVICTION_LRU_H__
|
||||
#define __EVICTION_LRU_H__
|
||||
|
||||
#include "eviction.h"
|
||||
#include "lru_structs.h"
|
||||
#include "ocf_space.h"
|
||||
#include "ocf_lru_structs.h"
|
||||
|
||||
struct ocf_part;
|
||||
struct ocf_user_part;
|
@@ -3,7 +3,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#include "eviction.h"
|
||||
#include "ocf_space.h"
|
||||
#include "../utils/utils_user_part.h"
|
||||
#include "../engine/engine_common.h"
|
||||
|
@@ -7,8 +7,8 @@
|
||||
#define __LAYER_EVICTION_POLICY_H__
|
||||
|
||||
#include "ocf/ocf.h"
|
||||
#include "lru.h"
|
||||
#include "lru_structs.h"
|
||||
#include "ocf_lru.h"
|
||||
#include "ocf_lru_structs.h"
|
||||
|
||||
#define OCF_PENDING_EVICTION_LIMIT 512UL
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../concurrency/ocf_cache_line_concurrency.h"
|
||||
#include "../eviction/eviction.h"
|
||||
#include "../ocf_space.h"
|
||||
#include "../engine/cache_engine.h"
|
||||
#include "../ocf_request.h"
|
||||
#include "../ocf_def_priv.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include "../ocf_request.h"
|
||||
#include "../metadata/metadata.h"
|
||||
#include "../engine/cache_engine.h"
|
||||
#include "../eviction/lru.h"
|
||||
#include "../ocf_lru.h"
|
||||
#include "utils_user_part.h"
|
||||
|
||||
static struct ocf_lst_entry *ocf_user_part_lst_getter_valid(
|
||||
|
Reference in New Issue
Block a user