[block-cache] Create just one noop_validator

No need to create a separate one for each block.
This commit is contained in:
Joe Thornber
2014-08-21 14:20:36 +01:00
parent 4799becb01
commit b5a9cd6043
2 changed files with 5 additions and 2 deletions

View File

@@ -214,6 +214,8 @@ namespace bcache {
unsigned write_hits_;
unsigned write_misses_;
unsigned prefetches_;
validator::ptr noop_validator_;
};
}