@@ -1287,7 +1287,7 @@ static bool acquire_provisional_reference(struct data_vio *agent, struct pbn_loc
12871287 if (result == VDO_SUCCESS )
12881288 return true;
12891289
1290- uds_log_warning_strerror (result ,
1290+ vdo_log_warning_strerror (result ,
12911291 "Error acquiring provisional reference for dedupe candidate; aborting dedupe" );
12921292 agent -> is_duplicate = false;
12931293 vdo_release_physical_zone_pbn_lock (agent -> duplicate .zone ,
@@ -1614,7 +1614,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
16141614
16151615 version = encoding -> data [offset ++ ];
16161616 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 );
16181618 return false;
16191619 }
16201620
@@ -1625,7 +1625,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
16251625
16261626 /* Don't use advice that's clearly meaningless. */
16271627 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" ,
16291629 (unsigned long long ) advice -> pbn , advice -> state ,
16301630 (unsigned long long ) data_vio -> logical .lbn );
16311631 atomic64_inc (& vdo -> stats .invalid_advice_pbn_count );
@@ -1634,7 +1634,7 @@ static bool decode_uds_advice(struct dedupe_context *context)
16341634
16351635 result = vdo_get_physical_zone (vdo , advice -> pbn , & advice -> zone );
16361636 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" ,
16381638 (unsigned long long ) advice -> pbn ,
16391639 (unsigned long long ) data_vio -> logical .lbn );
16401640 atomic64_inc (& vdo -> stats .invalid_advice_pbn_count );
@@ -2053,7 +2053,7 @@ static void close_index(struct hash_zones *zones)
20532053 result = uds_close_index (zones -> index_session );
20542054
20552055 if (result != UDS_SUCCESS )
2056- uds_log_error_strerror (result , "Error closing index" );
2056+ vdo_log_error_strerror (result , "Error closing index" );
20572057 spin_lock (& zones -> lock );
20582058 zones -> index_state = IS_CLOSED ;
20592059 zones -> error_flag |= result != UDS_SUCCESS ;
@@ -2080,7 +2080,7 @@ static void open_index(struct hash_zones *zones)
20802080 result = uds_open_index (create_flag ? UDS_CREATE : UDS_LOAD ,
20812081 & zones -> parameters , zones -> index_session );
20822082 if (result != UDS_SUCCESS )
2083- uds_log_error_strerror (result , "Error opening index" );
2083+ vdo_log_error_strerror (result , "Error opening index" );
20842084
20852085 spin_lock (& zones -> lock );
20862086 if (!create_flag ) {
@@ -2104,7 +2104,7 @@ static void open_index(struct hash_zones *zones)
21042104 zones -> index_target = IS_CLOSED ;
21052105 zones -> error_flag = true;
21062106 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" );
21082108 spin_lock (& zones -> lock );
21092109 }
21102110 /*
@@ -2160,7 +2160,7 @@ static void report_dedupe_timeouts(struct hash_zones *zones, unsigned int timeou
21602160 u64 unreported = atomic64_read (& zones -> timeouts );
21612161
21622162 unreported -= zones -> reported_timeouts ;
2163- uds_log_debug ("UDS index timeout on %llu requests" ,
2163+ vdo_log_debug ("UDS index timeout on %llu requests" ,
21642164 (unsigned long long ) unreported );
21652165 zones -> reported_timeouts += unreported ;
21662166 }
@@ -2207,7 +2207,7 @@ static int initialize_index(struct vdo *vdo, struct hash_zones *zones)
22072207 1 , NULL );
22082208 if (result != VDO_SUCCESS ) {
22092209 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 );
22112211 return result ;
22122212 }
22132213
@@ -2502,7 +2502,7 @@ static void initiate_suspend_index(struct admin_state *state)
25022502
25032503 result = uds_suspend_index_session (zones -> index_session , save );
25042504 if (result != UDS_SUCCESS )
2505- uds_log_error_strerror (result , "Error suspending dedupe index" );
2505+ vdo_log_error_strerror (result , "Error suspending dedupe index" );
25062506 }
25072507
25082508 vdo_finish_draining (state );
@@ -2585,7 +2585,7 @@ static void resume_index(void *context, struct vdo_completion *parent)
25852585 zones -> parameters .bdev = config -> owned_device -> bdev ;
25862586 result = uds_resume_index_session (zones -> index_session , zones -> parameters .bdev );
25872587 if (result != UDS_SUCCESS )
2588- uds_log_error_strerror (result , "Error resuming dedupe index" );
2588+ vdo_log_error_strerror (result , "Error resuming dedupe index" );
25892589
25902590 spin_lock (& zones -> lock );
25912591 vdo_resume_if_quiescent (& zones -> state );
@@ -2665,7 +2665,7 @@ static void get_index_statistics(struct hash_zones *zones,
26652665
26662666 result = uds_get_index_session_stats (zones -> index_session , & index_stats );
26672667 if (result != UDS_SUCCESS ) {
2668- uds_log_error_strerror (result , "Error reading index stats" );
2668+ vdo_log_error_strerror (result , "Error reading index stats" );
26692669 return ;
26702670 }
26712671
@@ -2750,7 +2750,7 @@ static void dump_hash_lock(const struct hash_lock *lock)
27502750 * unambiguous. 'U' indicates a lock not registered in the map.
27512751 */
27522752 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" ,
27542754 lock , state , (lock -> registered ? 'D' : 'U' ),
27552755 (unsigned long long ) lock -> duplicate .pbn ,
27562756 lock -> duplicate .state , lock -> reference_count ,
@@ -2784,11 +2784,11 @@ static void dump_hash_zone(const struct hash_zone *zone)
27842784 data_vio_count_t i ;
27852785
27862786 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 );
27882788 return ;
27892789 }
27902790
2791- uds_log_info ("struct hash_zone %u: mapSize=%zu" ,
2791+ vdo_log_info ("struct hash_zone %u: mapSize=%zu" ,
27922792 zone -> zone_number , vdo_int_map_size (zone -> hash_lock_map ));
27932793 for (i = 0 ; i < LOCK_POOL_CAPACITY ; i ++ )
27942794 dump_hash_lock (& zone -> lock_array [i ]);
@@ -2808,9 +2808,9 @@ void vdo_dump_hash_zones(struct hash_zones *zones)
28082808 target = (zones -> changing ? index_state_to_string (zones , zones -> index_target ) : NULL );
28092809 spin_unlock (& zones -> lock );
28102810
2811- uds_log_info ("UDS index: state: %s" , state );
2811+ vdo_log_info ("UDS index: state: %s" , state );
28122812 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 );
28142814
28152815 for (zone = 0 ; zone < zones -> zone_count ; zone ++ )
28162816 dump_hash_zone (& zones -> zones [zone ]);
@@ -2957,7 +2957,7 @@ static void set_target_state(struct hash_zones *zones, enum index_state target,
29572957 spin_unlock (& zones -> lock );
29582958
29592959 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 );
29612961}
29622962
29632963const char * vdo_get_dedupe_index_state_name (struct hash_zones * zones )
0 commit comments