@@ -530,7 +530,7 @@ static void destroy_log_context(struct log_c *lc)
530530
531531static void core_dtr (struct dm_dirty_log * log )
532532{
533- struct log_c * lc = ( struct log_c * ) log -> context ;
533+ struct log_c * lc = log -> context ;
534534
535535 vfree (lc -> clean_bits );
536536 destroy_log_context (lc );
@@ -569,7 +569,7 @@ static int disk_ctr(struct dm_dirty_log *log, struct dm_target *ti,
569569
570570static void disk_dtr (struct dm_dirty_log * log )
571571{
572- struct log_c * lc = ( struct log_c * ) log -> context ;
572+ struct log_c * lc = log -> context ;
573573
574574 dm_put_device (lc -> ti , lc -> log_dev );
575575 vfree (lc -> disk_header );
@@ -590,7 +590,7 @@ static int disk_resume(struct dm_dirty_log *log)
590590{
591591 int r ;
592592 unsigned int i ;
593- struct log_c * lc = ( struct log_c * ) log -> context ;
593+ struct log_c * lc = log -> context ;
594594 size_t size = lc -> bitset_uint32_count * sizeof (uint32_t );
595595
596596 /* read the disk header */
@@ -652,29 +652,29 @@ static int disk_resume(struct dm_dirty_log *log)
652652
653653static uint32_t core_get_region_size (struct dm_dirty_log * log )
654654{
655- struct log_c * lc = ( struct log_c * ) log -> context ;
655+ struct log_c * lc = log -> context ;
656656
657657 return lc -> region_size ;
658658}
659659
660660static int core_resume (struct dm_dirty_log * log )
661661{
662- struct log_c * lc = ( struct log_c * ) log -> context ;
662+ struct log_c * lc = log -> context ;
663663
664664 lc -> sync_search = 0 ;
665665 return 0 ;
666666}
667667
668668static int core_is_clean (struct dm_dirty_log * log , region_t region )
669669{
670- struct log_c * lc = ( struct log_c * ) log -> context ;
670+ struct log_c * lc = log -> context ;
671671
672672 return log_test_bit (lc -> clean_bits , region );
673673}
674674
675675static int core_in_sync (struct dm_dirty_log * log , region_t region , int block )
676676{
677- struct log_c * lc = ( struct log_c * ) log -> context ;
677+ struct log_c * lc = log -> context ;
678678
679679 return log_test_bit (lc -> sync_bits , region );
680680}
@@ -727,22 +727,22 @@ static int disk_flush(struct dm_dirty_log *log)
727727
728728static void core_mark_region (struct dm_dirty_log * log , region_t region )
729729{
730- struct log_c * lc = ( struct log_c * ) log -> context ;
730+ struct log_c * lc = log -> context ;
731731
732732 log_clear_bit (lc , lc -> clean_bits , region );
733733}
734734
735735static void core_clear_region (struct dm_dirty_log * log , region_t region )
736736{
737- struct log_c * lc = ( struct log_c * ) log -> context ;
737+ struct log_c * lc = log -> context ;
738738
739739 if (likely (!lc -> flush_failed ))
740740 log_set_bit (lc , lc -> clean_bits , region );
741741}
742742
743743static int core_get_resync_work (struct dm_dirty_log * log , region_t * region )
744744{
745- struct log_c * lc = ( struct log_c * ) log -> context ;
745+ struct log_c * lc = log -> context ;
746746
747747 if (lc -> sync_search >= lc -> region_count )
748748 return 0 ;
@@ -765,7 +765,7 @@ static int core_get_resync_work(struct dm_dirty_log *log, region_t *region)
765765static void core_set_region_sync (struct dm_dirty_log * log , region_t region ,
766766 int in_sync )
767767{
768- struct log_c * lc = ( struct log_c * ) log -> context ;
768+ struct log_c * lc = log -> context ;
769769
770770 log_clear_bit (lc , lc -> recovering_bits , region );
771771 if (in_sync ) {
@@ -779,7 +779,7 @@ static void core_set_region_sync(struct dm_dirty_log *log, region_t region,
779779
780780static region_t core_get_sync_count (struct dm_dirty_log * log )
781781{
782- struct log_c * lc = ( struct log_c * ) log -> context ;
782+ struct log_c * lc = log -> context ;
783783
784784 return lc -> sync_count ;
785785}
0 commit comments