2 * Copyright(c) 2012-2018 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause-Clear
6 #ifndef __METADATA_PARTITION_STRUCTS_H__
7 #define __METADATA_PARTITION_STRUCTS_H__
9 #include "../utils/utils_list.h"
10 #include "../cleaning/cleaning.h"
11 #include "../eviction/eviction.h"
13 struct ocf_user_part_config
{
14 char name
[OCF_IO_CLASS_NAME_MAX
];
18 ocf_cache_mode_t cache_mode
;
23 /*!< This bits is setting during partition sorting,
24 * and means that can evict from this partition
29 struct ocf_user_part_runtime
{
32 struct eviction_policy eviction
;
33 struct cleaning_policy cleaning
;
36 struct ocf_user_part
{
37 struct ocf_user_part_config
*config
;
38 struct ocf_user_part_runtime
*runtime
;
40 struct ocf_lst_entry lst_valid
;
44 #endif /* __METADATA_PARTITION_STRUCTS_H__ */