@@ -1287,7 +1287,7 @@ static bool acquire_provisional_reference(struct data_vio *agent, struct pbn_loc
1287
1287
if (result == VDO_SUCCESS )
1288
1288
return true;
1289
1289
1290
- uds_log_warning_strerror (result ,
1290
+ vdo_log_warning_strerror (result ,
1291
1291
"Error acquiring provisional reference for dedupe candidate; aborting dedupe" );
1292
1292
agent -> is_duplicate = false;
1293
1293
vdo_release_physical_zone_pbn_lock (agent -> duplicate .zone ,
@@ -1614,7 +1614,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
1614
1614
1615
1615
version = encoding -> data [offset ++ ];
1616
1616
if (version != UDS_ADVICE_VERSION ) {
1617
- uds_log_error ("invalid UDS advice version code %u" , version );
1617
+ vdo_log_error ("invalid UDS advice version code %u" , version );
1618
1618
return false;
1619
1619
}
1620
1620
@@ -1625,7 +1625,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
1625
1625
1626
1626
/* Don't use advice that's clearly meaningless. */
1627
1627
if ((advice -> state == VDO_MAPPING_STATE_UNMAPPED ) || (advice -> pbn == VDO_ZERO_BLOCK )) {
1628
- uds_log_debug ("Invalid advice from deduplication server: pbn %llu, state %u. Giving up on deduplication of logical block %llu" ,
1628
+ vdo_log_debug ("Invalid advice from deduplication server: pbn %llu, state %u. Giving up on deduplication of logical block %llu" ,
1629
1629
(unsigned long long ) advice -> pbn , advice -> state ,
1630
1630
(unsigned long long ) data_vio -> logical .lbn );
1631
1631
atomic64_inc (& vdo -> stats .invalid_advice_pbn_count );
@@ -1634,7 +1634,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
1634
1634
1635
1635
result = vdo_get_physical_zone (vdo , advice -> pbn , & advice -> zone );
1636
1636
if ((result != VDO_SUCCESS ) || (advice -> zone == NULL )) {
1637
- uds_log_debug ("Invalid physical block number from deduplication server: %llu, giving up on deduplication of logical block %llu" ,
1637
+ vdo_log_debug ("Invalid physical block number from deduplication server: %llu, giving up on deduplication of logical block %llu" ,
1638
1638
(unsigned long long ) advice -> pbn ,
1639
1639
(unsigned long long ) data_vio -> logical .lbn );
1640
1640
atomic64_inc (& vdo -> stats .invalid_advice_pbn_count );
@@ -2053,7 +2053,7 @@ static void close_index(struct hash_zones *zones)
2053
2053
result = uds_close_index (zones -> index_session );
2054
2054
2055
2055
if (result != UDS_SUCCESS )
2056
- uds_log_error_strerror (result , "Error closing index" );
2056
+ vdo_log_error_strerror (result , "Error closing index" );
2057
2057
spin_lock (& zones -> lock );
2058
2058
zones -> index_state = IS_CLOSED ;
2059
2059
zones -> error_flag |= result != UDS_SUCCESS ;
@@ -2080,7 +2080,7 @@ static void open_index(struct hash_zones *zones)
2080
2080
result = uds_open_index (create_flag ? UDS_CREATE : UDS_LOAD ,
2081
2081
& zones -> parameters , zones -> index_session );
2082
2082
if (result != UDS_SUCCESS )
2083
- uds_log_error_strerror (result , "Error opening index" );
2083
+ vdo_log_error_strerror (result , "Error opening index" );
2084
2084
2085
2085
spin_lock (& zones -> lock );
2086
2086
if (!create_flag ) {
@@ -2104,7 +2104,7 @@ static void open_index(struct hash_zones *zones)
2104
2104
zones -> index_target = IS_CLOSED ;
2105
2105
zones -> error_flag = true;
2106
2106
spin_unlock (& zones -> lock );
2107
- uds_log_info ("Setting UDS index target state to error" );
2107
+ vdo_log_info ("Setting UDS index target state to error" );
2108
2108
spin_lock (& zones -> lock );
2109
2109
}
2110
2110
/*
@@ -2160,7 +2160,7 @@ static void report_dedupe_timeouts(struct hash_zones *zones, unsigned int timeou
2160
2160
u64 unreported = atomic64_read (& zones -> timeouts );
2161
2161
2162
2162
unreported -= zones -> reported_timeouts ;
2163
- uds_log_debug ("UDS index timeout on %llu requests" ,
2163
+ vdo_log_debug ("UDS index timeout on %llu requests" ,
2164
2164
(unsigned long long ) unreported );
2165
2165
zones -> reported_timeouts += unreported ;
2166
2166
}
@@ -2207,7 +2207,7 @@ static int initialize_index(struct vdo *vdo, struct hash_zones *zones)
2207
2207
1 , NULL );
2208
2208
if (result != VDO_SUCCESS ) {
2209
2209
uds_destroy_index_session (vdo_forget (zones -> index_session ));
2210
- uds_log_error ("UDS index queue initialization failed (%d)" , result );
2210
+ vdo_log_error ("UDS index queue initialization failed (%d)" , result );
2211
2211
return result ;
2212
2212
}
2213
2213
@@ -2502,7 +2502,7 @@ static void initiate_suspend_index(struct admin_state *state)
2502
2502
2503
2503
result = uds_suspend_index_session (zones -> index_session , save );
2504
2504
if (result != UDS_SUCCESS )
2505
- uds_log_error_strerror (result , "Error suspending dedupe index" );
2505
+ vdo_log_error_strerror (result , "Error suspending dedupe index" );
2506
2506
}
2507
2507
2508
2508
vdo_finish_draining (state );
@@ -2585,7 +2585,7 @@ static void resume_index(void *context, struct vdo_completion *parent)
2585
2585
zones -> parameters .bdev = config -> owned_device -> bdev ;
2586
2586
result = uds_resume_index_session (zones -> index_session , zones -> parameters .bdev );
2587
2587
if (result != UDS_SUCCESS )
2588
- uds_log_error_strerror (result , "Error resuming dedupe index" );
2588
+ vdo_log_error_strerror (result , "Error resuming dedupe index" );
2589
2589
2590
2590
spin_lock (& zones -> lock );
2591
2591
vdo_resume_if_quiescent (& zones -> state );
@@ -2665,7 +2665,7 @@ static void get_index_statistics(struct hash_zones *zones,
2665
2665
2666
2666
result = uds_get_index_session_stats (zones -> index_session , & index_stats );
2667
2667
if (result != UDS_SUCCESS ) {
2668
- uds_log_error_strerror (result , "Error reading index stats" );
2668
+ vdo_log_error_strerror (result , "Error reading index stats" );
2669
2669
return ;
2670
2670
}
2671
2671
@@ -2750,7 +2750,7 @@ static void dump_hash_lock(const struct hash_lock *lock)
2750
2750
* unambiguous. 'U' indicates a lock not registered in the map.
2751
2751
*/
2752
2752
state = get_hash_lock_state_name (lock -> state );
2753
- uds_log_info (" hl %px: %3.3s %c%llu/%u rc=%u wc=%zu agt=%px" ,
2753
+ vdo_log_info (" hl %px: %3.3s %c%llu/%u rc=%u wc=%zu agt=%px" ,
2754
2754
lock , state , (lock -> registered ? 'D' : 'U' ),
2755
2755
(unsigned long long ) lock -> duplicate .pbn ,
2756
2756
lock -> duplicate .state , lock -> reference_count ,
@@ -2784,11 +2784,11 @@ static void dump_hash_zone(const struct hash_zone *zone)
2784
2784
data_vio_count_t i ;
2785
2785
2786
2786
if (zone -> hash_lock_map == NULL ) {
2787
- uds_log_info ("struct hash_zone %u: NULL map" , zone -> zone_number );
2787
+ vdo_log_info ("struct hash_zone %u: NULL map" , zone -> zone_number );
2788
2788
return ;
2789
2789
}
2790
2790
2791
- uds_log_info ("struct hash_zone %u: mapSize=%zu" ,
2791
+ vdo_log_info ("struct hash_zone %u: mapSize=%zu" ,
2792
2792
zone -> zone_number , vdo_int_map_size (zone -> hash_lock_map ));
2793
2793
for (i = 0 ; i < LOCK_POOL_CAPACITY ; i ++ )
2794
2794
dump_hash_lock (& zone -> lock_array [i ]);
@@ -2808,9 +2808,9 @@ void vdo_dump_hash_zones(struct hash_zones *zones)
2808
2808
target = (zones -> changing ? index_state_to_string (zones , zones -> index_target ) : NULL );
2809
2809
spin_unlock (& zones -> lock );
2810
2810
2811
- uds_log_info ("UDS index: state: %s" , state );
2811
+ vdo_log_info ("UDS index: state: %s" , state );
2812
2812
if (target != NULL )
2813
- uds_log_info ("UDS index: changing to state: %s" , target );
2813
+ vdo_log_info ("UDS index: changing to state: %s" , target );
2814
2814
2815
2815
for (zone = 0 ; zone < zones -> zone_count ; zone ++ )
2816
2816
dump_hash_zone (& zones -> zones [zone ]);
@@ -2957,7 +2957,7 @@ static void set_target_state(struct hash_zones *zones, enum index_state target,
2957
2957
spin_unlock (& zones -> lock );
2958
2958
2959
2959
if (old_state != new_state )
2960
- uds_log_info ("Setting UDS index target state to %s" , new_state );
2960
+ vdo_log_info ("Setting UDS index target state to %s" , new_state );
2961
2961
}
2962
2962
2963
2963
const char * vdo_get_dedupe_index_state_name (struct hash_zones * zones )
0 commit comments