]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/ocf/src/mngt/ocf_mngt_common.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / ocf / src / mngt / ocf_mngt_common.h
index 66b77352138f1be6f0b1e36e2d9a8f519a844b66..38283d0c942316fc29839e8ab0973a8c73a25e22 100644 (file)
@@ -7,27 +7,27 @@
 #ifndef __OCF_MNGT_COMMON_H__
 #define __OCF_MNGT_COMMON_H__
 
-int cache_mng_core_close(ocf_cache_t cache, ocf_core_id_t core_id);
+int cache_mngt_core_close(ocf_core_t core);
 
-void cache_mng_core_remove_from_meta(struct ocf_cache *cache, int core_id);
+void cache_mngt_core_remove_from_meta(ocf_core_t core);
 
-void cache_mng_core_remove_from_cache(struct ocf_cache *cache, int core_id);
+void cache_mngt_core_remove_from_cache(ocf_core_t core);
 
-void cache_mng_core_deinit_attached_meta(struct ocf_cache *cache, int core_id);
+void cache_mngt_core_deinit_attached_meta(ocf_core_t core);
 
-void cache_mng_core_remove_from_cleaning_pol(struct ocf_cache *cache,
-               int core_id);
+void cache_mngt_core_remove_from_cleaning_pol(ocf_core_t core);
 
 int _ocf_cleaning_thread(void *priv);
 
-int cache_mng_thread_io_requests(void *data);
-
-bool ocf_mngt_cache_is_dirty(ocf_cache_t cache);
+int cache_mngt_thread_io_requests(void *data);
 
 int ocf_mngt_add_partition_to_cache(struct ocf_cache *cache,
                ocf_part_id_t part_id, const char *name, uint32_t min_size,
                uint32_t max_size, uint8_t priority, bool valid);
 
-bool ocf_mngt_is_cache_locked(ocf_cache_t cache);
+int ocf_mngt_cache_lock_init(ocf_cache_t cache);
+void ocf_mngt_cache_lock_deinit(ocf_cache_t cache);
+
+bool ocf_mngt_cache_is_locked(ocf_cache_t cache);
 
 #endif /* __OCF_MNGT_COMMON_H__ */