From f9447fda7554bf29390d1e4da976b5a77b523b4c Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 27 May 2019 15:53:27 +0200 Subject: [PATCH] Remove all the trailing whitespaces Signed-off-by: Robert Baldyga --- src/metadata/metadata_hash.c | 2 +- src/ocf_io.c | 2 +- src/ocf_volume.c | 4 ++-- src/utils/utils_cache_line.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/metadata/metadata_hash.c b/src/metadata/metadata_hash.c index 1ee01a8..17b69ff 100644 --- a/src/metadata/metadata_hash.c +++ b/src/metadata/metadata_hash.c @@ -1457,7 +1457,7 @@ static void ocf_medatata_hash_flush_segment(ocf_pipeline_t pipeline, ocf_cache_t cache = context->cache; ctrl = (struct ocf_metadata_hash_ctrl *)cache->metadata.iface_priv; - + ocf_metadata_raw_flush_all(cache, &ctrl->raw_desc[segment], ocf_metadata_hash_generic_complete, context); } diff --git a/src/ocf_io.c b/src/ocf_io.c index 12a0db2..081eede 100644 --- a/src/ocf_io.c +++ b/src/ocf_io.c @@ -69,7 +69,7 @@ struct ocf_io *ocf_io_new(ocf_volume_t volume) io->volume = volume; io->ops = &volume->type->properties->io_ops; - env_atomic_set(&io_meta->ref_count, 1); + env_atomic_set(&io_meta->ref_count, 1); return io; } diff --git a/src/ocf_volume.c b/src/ocf_volume.c index 5459f46..b007e0a 100644 --- a/src/ocf_volume.c +++ b/src/ocf_volume.c @@ -247,7 +247,7 @@ void ocf_volume_submit_flush(struct ocf_io *io) io->end(io, -EIO); if (!io->volume->type->properties->ops.submit_flush) { - ocf_io_end(io, 0); + ocf_io_end(io, 0); return; } @@ -260,7 +260,7 @@ void ocf_volume_submit_discard(struct ocf_io *io) io->end(io, -EIO); if (!io->volume->type->properties->ops.submit_discard) { - ocf_io_end(io, 0); + ocf_io_end(io, 0); return; } diff --git a/src/utils/utils_cache_line.c b/src/utils/utils_cache_line.c index e239ee0..ff6350b 100644 --- a/src/utils/utils_cache_line.c +++ b/src/utils/utils_cache_line.c @@ -133,7 +133,7 @@ void set_cache_line_clean(struct ocf_cache *cache, uint8_t start_bit, evict_policy_ops[evp_type].clean_cline(cache, part_id, line); ocf_purge_cleaning_policy(cache, line); - ocf_metadata_flush_mark(cache, req, map_idx, CLEAN, start_bit, + ocf_metadata_flush_mark(cache, req, map_idx, CLEAN, start_bit, end_bit); } } @@ -169,8 +169,8 @@ void set_cache_line_dirty(struct ocf_cache *cache, uint8_t start_bit, if (likely(evict_policy_ops[evp_type].dirty_cline)) evict_policy_ops[evp_type].dirty_cline(cache, part_id, line); - - ocf_metadata_flush_mark(cache, req, map_idx, DIRTY, start_bit, + + ocf_metadata_flush_mark(cache, req, map_idx, DIRTY, start_bit, end_bit); }