
Moving metadata implementation out of obsolete metadata_hash.c to .c files corresponding to function declaration header files. This requires adding shared header for metadata implementation metadata_internal.h. Some metadata header files did not have a corresponding .c file - in this case it is added in this commit. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
24 lines
542 B
C
24 lines
542 B
C
/*
|
|
* copyright(c) 2020 intel corporation
|
|
* spdx-license-identifier: bsd-3-clause-clear
|
|
*/
|
|
|
|
#include "ocf/ocf.h"
|
|
#include "metadata.h"
|
|
#include "metadata_cleaning_policy.h"
|
|
#include "metadata_internal.h"
|
|
|
|
/*
|
|
* Cleaning policy - Get
|
|
*/
|
|
struct cleaning_policy_meta *
|
|
ocf_metadata_get_cleaning_policy(struct ocf_cache *cache,
|
|
ocf_cache_line_t line)
|
|
{
|
|
struct ocf_metadata_ctrl *ctrl
|
|
= (struct ocf_metadata_ctrl *) cache->metadata.priv;
|
|
|
|
return ocf_metadata_raw_wr_access(cache,
|
|
&(ctrl->raw_desc[metadata_segment_cleaning]), line);
|
|
}
|