]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
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 11void evp_lru_init_cline(struct ocf_cache *cache, ocf_cache_line_t cline);
9f95a23c
TL
12void evp_lru_rm_cline(struct ocf_cache *cache, ocf_cache_line_t cline);
13bool evp_lru_can_evict(struct ocf_cache *cache);
14uint32_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
16void evp_lru_hot_cline(struct ocf_cache *cache, ocf_cache_line_t cline);
17void evp_lru_init_evp(struct ocf_cache *cache, ocf_part_id_t part_id);
18void evp_lru_dirty_cline(struct ocf_cache *cache, ocf_part_id_t part_id, uint32_t cline);
19void evp_lru_clean_cline(struct ocf_cache *cache, ocf_part_id_t part_id, uint32_t cline);
20
21#endif