From 398d53e0d66f0cafa143346bf40c6246d904b7e0 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 14 Aug 2017 10:17:56 +0100 Subject: [PATCH] [block-cache] add comment to stop me removing the list sizes again. --- block-cache/block_cache.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block-cache/block_cache.h b/block-cache/block_cache.h index d6cd1c9..33f3fe5 100644 --- a/block-cache/block_cache.h +++ b/block-cache/block_cache.h @@ -266,6 +266,9 @@ namespace bcache { block_list dirty_; block_list clean_; + // Because the block_list type doesn't have a constant time + // size() method, we have to manually keep track of the list + // sizes (tedious and error prone). unsigned nr_locked_; unsigned nr_dirty_;