]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/src/metadata/metadata_cleaning_policy.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / ocf / src / metadata / metadata_cleaning_policy.h
1 /*
2 * Copyright(c) 2012-2018 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause-Clear
4 */
5
6 #ifndef __METADATA_CLEANING_POLICY_H__
7 #define __METADATA_CLEANING_POLICY_H__
8
9 /*
10 * GET
11 */
12 static inline void
13 ocf_metadata_get_cleaning_policy(struct ocf_cache *cache,
14 ocf_cache_line_t line, struct cleaning_policy_meta *policy)
15 {
16 cache->metadata.iface.get_cleaning_policy(cache, line, policy);
17 }
18
19 /*
20 * SET
21 */
22 static inline void
23 ocf_metadata_set_cleaning_policy(struct ocf_cache *cache,
24 ocf_cache_line_t line, struct cleaning_policy_meta *policy)
25 {
26 cache->metadata.iface.set_cleaning_policy(cache, line, policy);
27 }
28
29 #endif /* METADATA_CLEANING_POLICY_H_ */