[metadata_counter] hide count_trees() and count_space_maps()
This commit is contained in:
parent
9e7af6b677
commit
3439dbfdfc
@ -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,
|
superblock_detail::superblock &sb,
|
||||||
block_counter &bc) {
|
block_counter &bc) {
|
||||||
|
|
||||||
@ -26,9 +27,9 @@ void thin_provisioning::count_trees(transaction_manager::ptr tm,
|
|||||||
mapping_tree_detail::block_traits::ref_counter(space_map::ptr()));
|
mapping_tree_detail::block_traits::ref_counter(space_map::ptr()));
|
||||||
count_btree_blocks(mtree, bc, vc);
|
count_btree_blocks(mtree, bc, vc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
|
void count_space_maps(transaction_manager::ptr tm,
|
||||||
superblock_detail::superblock &sb,
|
superblock_detail::superblock &sb,
|
||||||
block_counter &bc) {
|
block_counter &bc) {
|
||||||
// Count the metadata space map (no-throw)
|
// Count the metadata space map (no-throw)
|
||||||
@ -46,8 +47,11 @@ void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
|
|||||||
open_disk_sm(*tm, static_cast<void *>(&sb.data_space_map_root_));
|
open_disk_sm(*tm, static_cast<void *>(&sb.data_space_map_root_));
|
||||||
data_sm->count_metadata(bc);
|
data_sm->count_metadata(bc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------
|
||||||
|
|
||||||
void thin_provisioning::count_metadata(transaction_manager::ptr tm,
|
void thin_provisioning::count_metadata(transaction_manager::ptr tm,
|
||||||
superblock_detail::superblock &sb,
|
superblock_detail::superblock &sb,
|
||||||
block_counter &bc,
|
block_counter &bc,
|
||||||
|
@ -7,12 +7,6 @@
|
|||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
|
|
||||||
namespace thin_provisioning {
|
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,
|
void count_metadata(transaction_manager::ptr tm,
|
||||||
superblock_detail::superblock &sb,
|
superblock_detail::superblock &sb,
|
||||||
block_counter &bc,
|
block_counter &bc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user