]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | /* |
2 | * Copyright(c) 2012-2018 Intel Corporation | |
3 | * SPDX-License-Identifier: BSD-3-Clause-Clear | |
4 | */ | |
5 | #ifndef __EVICTION_LRU_H__ | |
6 | #define __EVICTION_LRU_H__ | |
7 | ||
8 | #include "eviction.h" | |
9 | #include "lru_structs.h" | |
10 | ||
f67539c2 | 11 | void evp_lru_init_cline(struct ocf_cache *cache, ocf_cache_line_t cline); |
9f95a23c TL |
12 | void evp_lru_rm_cline(struct ocf_cache *cache, ocf_cache_line_t cline); |
13 | bool evp_lru_can_evict(struct ocf_cache *cache); | |
14 | uint32_t evp_lru_req_clines(struct ocf_cache *cache, ocf_queue_t io_queue, | |
f67539c2 | 15 | ocf_part_id_t part_id, uint32_t cline_no); |
9f95a23c TL |
16 | void evp_lru_hot_cline(struct ocf_cache *cache, ocf_cache_line_t cline); |
17 | void evp_lru_init_evp(struct ocf_cache *cache, ocf_part_id_t part_id); | |
18 | void evp_lru_dirty_cline(struct ocf_cache *cache, ocf_part_id_t part_id, uint32_t cline); | |
19 | void evp_lru_clean_cline(struct ocf_cache *cache, ocf_part_id_t part_id, uint32_t cline); | |
20 | ||
21 | #endif |