[block-cache] reverse earlier patch which took out manual counts for

nr_dirty etc.

The block list type doesn't have a constant time size() method.
This commit is contained in:
Joe Thornber
2017-08-14 10:13:32 +01:00
parent 2f355f64ff
commit 4489a9bae6
2 changed files with 11 additions and 2 deletions

View File

@@ -267,7 +267,9 @@ namespace bcache {
block_list clean_;
unsigned nr_locked_;
unsigned nr_dirty_;
unsigned nr_io_pending_;
block_list io_pending_;
typedef bi::member_hook<block,