From 9f15c5589f8bb851674f97c8bad2ef6ddf637b27 Mon Sep 17 00:00:00 2001 From: Ming-Hung Tsai Date: Sun, 6 Mar 2016 00:06:27 +0800 Subject: [PATCH] [thin_scan] Cleanup: move methods before data member declaration --- thin-provisioning/thin_scan.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/thin-provisioning/thin_scan.cc b/thin-provisioning/thin_scan.cc index 94edd1d..725c3b6 100644 --- a/thin-provisioning/thin_scan.cc +++ b/thin-provisioning/thin_scan.cc @@ -129,14 +129,6 @@ namespace { }; struct block_range { - uint64_t begin_; - uint64_t end_; // one-pass-the-end - boost::optional blocknr_begin_; - metadata_block_type type_; - int64_t ref_count_; // ref_count in metadata space map - size_t value_size_; // btree node only - bool is_valid_; // btree node only - block_range() : begin_(0), end_(0), type_(UNKNOWN), ref_count_(-1), @@ -184,6 +176,14 @@ namespace { end_ = std::max(end_, r.end_); return true; } + + uint64_t begin_; + uint64_t end_; // one-pass-the-end + boost::optional blocknr_begin_; + metadata_block_type type_; + int64_t ref_count_; // ref_count in metadata space map + size_t value_size_; // btree node only + bool is_valid_; }; void output_block_range(block_range const &r, std::ostream &out) {