ocf/inc
Slawomir Jankowski eeda1f3f0f Unify type of dirty_for in info structs
Reformat function that calculates how long cache/core is dirty
Update `dirty_for` types in functional tests

Values stored in info structs fields (both in cache and core structs)
are unsigned 64-bits ints but `dirty_for`s were unsigned 32-bits ints.

Use existing function to transform returned value to seconds.
Replace seconds stored in metadata with seconds.
Replacement was done if old value of replaced field was equal to zero.
Acquiring monotonic high precission timestamp is potentially
slow and it makes sense to compare the field's value
to zero before calling atomic function.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-02-25 14:51:53 +01:00
..
cleaning Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
promotion Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_cache.h Unify type of dirty_for in info structs 2021-02-25 14:51:53 +01:00
ocf_cfg.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_cleaner.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_core.h Unify type of dirty_for in info structs 2021-02-25 14:51:53 +01:00
ocf_ctx.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_debug.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_def.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_err.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_io_class.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_io.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_logger.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_metadata_updater.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_metadata.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_mngt.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_queue.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_stats.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_trace.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_types.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf_volume.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00
ocf.h Update copyright statements (2021) 2021-01-21 13:17:34 +01:00