[metadata_counter] hide count_trees() and count_space_maps()

This commit is contained in:
Ming-Hung Tsai 2016-06-19 22:05:58 +08:00
parent 9e7af6b677
commit 3439dbfdfc
2 changed files with 38 additions and 40 deletions

View File

@ -7,7 +7,8 @@ using namespace thin_provisioning;
//----------------------------------------------------------------
void thin_provisioning::count_trees(transaction_manager::ptr tm,
namespace {
void count_trees(transaction_manager::ptr tm,
superblock_detail::superblock &sb,
block_counter &bc) {
@ -28,7 +29,7 @@ void thin_provisioning::count_trees(transaction_manager::ptr tm,
}
}
void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
void count_space_maps(transaction_manager::ptr tm,
superblock_detail::superblock &sb,
block_counter &bc) {
// Count the metadata space map (no-throw)
@ -47,6 +48,9 @@ void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
data_sm->count_metadata(bc);
}
}
}
//----------------------------------------------------------------
void thin_provisioning::count_metadata(transaction_manager::ptr tm,
superblock_detail::superblock &sb,

View File

@ -7,12 +7,6 @@
//----------------------------------------------------------------
namespace thin_provisioning {
void count_trees(transaction_manager::ptr tm,
superblock_detail::superblock &sb,
block_counter &bc);
void count_space_maps(transaction_manager::ptr tm,
superblock_detail::superblock &sb,
block_counter &bc);
void count_metadata(transaction_manager::ptr tm,
superblock_detail::superblock &sb,
block_counter &bc,