]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/src/eviction/lru.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / ocf / src / eviction / lru.h
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
11 void evp_lru_init_cline(struct ocf_cache *cache, ocf_cache_line_t cline);
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,
15 ocf_part_id_t part_id, uint32_t cline_no);
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