bcache: Remove dead references to cache_readaheads
authorAndrea Tomassetti <andrea.tomassetti-opensource@devo.com>
Thu, 15 Jun 2023 12:12:20 +0000 (20:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Jun 2023 13:30:11 +0000 (07:30 -0600)
The cache_readaheads stat counter is not used anymore and should be
removed.

Signed-off-by: Andrea Tomassetti <andrea.tomassetti-opensource@devo.com>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20230615121223.22502-4-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/admin-guide/bcache.rst
drivers/md/bcache/stats.h

index bb5032a99234737f4a61fc242f98796f499542a5..6fdb495ac46652ac75f39ee8d3fd595a335f316e 100644 (file)
@@ -508,9 +508,6 @@ cache_miss_collisions
   cache miss, but raced with a write and data was already present (usually 0
   since the synchronization for cache misses was rewritten)
 
-cache_readaheads
-  Count of times readahead occurred.
-
 Sysfs - cache set
 ~~~~~~~~~~~~~~~~~
 
index bd3afc856d53452bd96113b623ba6e1706aca153..21b445f8af158a300690d554236b0dc1c6a6ca0c 100644 (file)
@@ -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;