diff options
Diffstat (limited to 'drivers/md/dm-log.c')
| -rw-r--r-- | drivers/md/dm-log.c | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index afd94d2e7295..f9f84236dfcd 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c @@ -530,7 +530,7 @@ static void destroy_log_context(struct log_c *lc)  static void core_dtr(struct dm_dirty_log *log)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	vfree(lc->clean_bits);  	destroy_log_context(lc); @@ -569,7 +569,7 @@ static int disk_ctr(struct dm_dirty_log *log, struct dm_target *ti,  static void disk_dtr(struct dm_dirty_log *log)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	dm_put_device(lc->ti, lc->log_dev);  	vfree(lc->disk_header); @@ -590,7 +590,7 @@ static int disk_resume(struct dm_dirty_log *log)  {  	int r;  	unsigned int i; -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	size_t size = lc->bitset_uint32_count * sizeof(uint32_t);  	/* read the disk header */ @@ -652,14 +652,14 @@ static int disk_resume(struct dm_dirty_log *log)  static uint32_t core_get_region_size(struct dm_dirty_log *log)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	return lc->region_size;  }  static int core_resume(struct dm_dirty_log *log)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	lc->sync_search = 0;  	return 0; @@ -667,14 +667,14 @@ static int core_resume(struct dm_dirty_log *log)  static int core_is_clean(struct dm_dirty_log *log, region_t region)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	return log_test_bit(lc->clean_bits, region);  }  static int core_in_sync(struct dm_dirty_log *log, region_t region, int block)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	return log_test_bit(lc->sync_bits, region);  } @@ -727,14 +727,14 @@ static int disk_flush(struct dm_dirty_log *log)  static void core_mark_region(struct dm_dirty_log *log, region_t region)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	log_clear_bit(lc, lc->clean_bits, region);  }  static void core_clear_region(struct dm_dirty_log *log, region_t region)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	if (likely(!lc->flush_failed))  		log_set_bit(lc, lc->clean_bits, region); @@ -742,7 +742,7 @@ static void core_clear_region(struct dm_dirty_log *log, region_t region)  static int core_get_resync_work(struct dm_dirty_log *log, region_t *region)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	if (lc->sync_search >= lc->region_count)  		return 0; @@ -765,7 +765,7 @@ static int core_get_resync_work(struct dm_dirty_log *log, region_t *region)  static void core_set_region_sync(struct dm_dirty_log *log, region_t region,  				 int in_sync)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	log_clear_bit(lc, lc->recovering_bits, region);  	if (in_sync) { @@ -779,7 +779,7 @@ static void core_set_region_sync(struct dm_dirty_log *log, region_t region,  static region_t core_get_sync_count(struct dm_dirty_log *log)  { -	struct log_c *lc = (struct log_c *) log->context; +	struct log_c *lc = log->context;  	return lc->sync_count;  }  |