Skip to contentSkip to conversation

bcache: remove unused struct member in cache_stats

PATCH In review Lin Feng 2 participants 2 messages Oct 29, 2021 – Oct 30, 2021 bcache (block layer cache)

lore
Share & tools
lore

Lin Feng

author
#0 lore raw

PATCH 1/1 bcache: remove unused struct member in cache_stats

Commit 1616a4c2ab1a80893b6890ae93da40a2b1d0c691 ("bcache: remove bcache device self-defined readahead") remove stuffs for bcache self-defined readahead, but cache_readaheads field in cache_stats is leftout, remove it.

---
 drivers/md/bcache/stats.h | 1 -
 1 file changed, 1 deletion(-)
drivers/md/bcache/stats.h +0 -1
index ca4f435f7216..b6bfea66c01f 100644
@@ -18,7 +18,6 @@ struct cache_stats {
 	unsigned long cache_misses;
 	unsigned long cache_bypass_hits;
 	unsigned long cache_bypass_misses;
-	unsigned long cache_readaheads;
 	unsigned long cache_miss_collisions;
 	unsigned long sectors_bypassed;
 
Signature · 1 line
2.31.1
#1 lore raw
Quoted 6 lines · Lin Feng

Commit 1616a4c2ab1a80893b6890ae93da40a2b1d0c691 ("bcache: remove bcache device self-defined readahead") remove stuffs for bcache self-defined readahead, but cache_readaheads field in cache_stats is leftout, remove it.

Nice catch. I add it into my testing queue. Thanks.

Coly Li

Quoted 16 lines
---
  drivers/md/bcache/stats.h | 1 -
  1 file changed, 1 deletion(-)
drivers/md/bcache/stats.h +0 -1
index ca4f435f7216..b6bfea66c01f 100644
@@ -18,7 +18,6 @@ struct cache_stats {
  	unsigned long cache_misses;
  	unsigned long cache_bypass_hits;
  	unsigned long cache_bypass_misses;
-	unsigned long cache_readaheads;
  	unsigned long cache_miss_collisions;
  	unsigned long sectors_bypassed;