lru: Move partition runtime structures outside of metadata

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2024-05-06 07:43:45 +02:00
parent 283a897eeb
commit 43cc487c40
4 changed files with 8 additions and 6 deletions

View File

@ -1,12 +1,12 @@
/* /*
* Copyright(c) 2012-2021 Intel Corporation * Copyright(c) 2012-2021 Intel Corporation
* Copyright(c) 2024 Huawei Technologies Co., Ltd.
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __METADATA_PARTITION_H__ #ifndef __METADATA_PARTITION_H__
#define __METADATA_PARTITION_H__ #define __METADATA_PARTITION_H__
#include "metadata_partition_structs.h"
#include "../ocf_cache_priv.h" #include "../ocf_cache_priv.h"
#define PARTITION_DEFAULT 0 #define PARTITION_DEFAULT 0

View File

@ -9,10 +9,10 @@
#include "ocf_mngt_core_priv.h" #include "ocf_mngt_core_priv.h"
#include "../ocf_priv.h" #include "../ocf_priv.h"
#include "../ocf_core_priv.h" #include "../ocf_core_priv.h"
#include "../ocf_part.h"
#include "../ocf_queue_priv.h" #include "../ocf_queue_priv.h"
#include "../metadata/metadata.h" #include "../metadata/metadata.h"
#include "../metadata/metadata_io.h" #include "../metadata/metadata_io.h"
#include "../metadata/metadata_partition_structs.h"
#include "../engine/cache_engine.h" #include "../engine/cache_engine.h"
#include "../utils/utils_user_part.h" #include "../utils/utils_user_part.h"
#include "../utils/utils_cache_line.h" #include "../utils/utils_cache_line.h"

View File

@ -1,5 +1,6 @@
/* /*
* Copyright(c) 2012-2022 Intel Corporation * Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -10,8 +11,8 @@
#include "ocf_env.h" #include "ocf_env.h"
#include "ocf_volume_priv.h" #include "ocf_volume_priv.h"
#include "ocf_core_priv.h" #include "ocf_core_priv.h"
#include "ocf_part.h"
#include "metadata/metadata_structs.h" #include "metadata/metadata_structs.h"
#include "metadata/metadata_partition_structs.h"
#include "utils/utils_list.h" #include "utils/utils_list.h"
#include "utils/utils_pipeline.h" #include "utils/utils_pipeline.h"
#include "utils/utils_refcnt.h" #include "utils/utils_refcnt.h"

View File

@ -1,14 +1,15 @@
/* /*
* Copyright(c) 2012-2021 Intel Corporation * Copyright(c) 2012-2021 Intel Corporation
* Copyright(c) 2023-2024 Huawei Technologies Co., Ltd.
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __METADATA_PARTITION_STRUCTS_H__ #ifndef __METADATA_PARTITION_STRUCTS_H__
#define __METADATA_PARTITION_STRUCTS_H__ #define __METADATA_PARTITION_STRUCTS_H__
#include "../utils/utils_list.h" #include "utils/utils_list.h"
#include "../cleaning/cleaning.h" #include "cleaning/cleaning.h"
#include "../ocf_space.h" #include "ocf_space.h"
#define OCF_NUM_PARTITIONS OCF_USER_IO_CLASS_MAX + 2 #define OCF_NUM_PARTITIONS OCF_USER_IO_CLASS_MAX + 2