stats.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) stats.h (6f10f7d1b02b1bbc305f88d7696445dd38b13881)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _BCACHE_STATS_H_
3#define _BCACHE_STATS_H_
4
5struct cache_stat_collector {
6 atomic_t cache_hits;
7 atomic_t cache_misses;
8 atomic_t cache_bypass_hits;

--- 9 unchanged lines hidden (view full) ---

18 unsigned long cache_hits;
19 unsigned long cache_misses;
20 unsigned long cache_bypass_hits;
21 unsigned long cache_bypass_misses;
22 unsigned long cache_readaheads;
23 unsigned long cache_miss_collisions;
24 unsigned long sectors_bypassed;
25
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _BCACHE_STATS_H_
3#define _BCACHE_STATS_H_
4
5struct cache_stat_collector {
6 atomic_t cache_hits;
7 atomic_t cache_misses;
8 atomic_t cache_bypass_hits;

--- 9 unchanged lines hidden (view full) ---

18 unsigned long cache_hits;
19 unsigned long cache_misses;
20 unsigned long cache_bypass_hits;
21 unsigned long cache_bypass_misses;
22 unsigned long cache_readaheads;
23 unsigned long cache_miss_collisions;
24 unsigned long sectors_bypassed;
25
26 unsigned rescale;
26 unsigned int rescale;
27};
28
29struct cache_accounting {
30 struct closure cl;
31 struct timer_list timer;
32 atomic_t closing;
33
34 struct cache_stat_collector collector;

--- 28 unchanged lines hidden ---
27};
28
29struct cache_accounting {
30 struct closure cl;
31 struct timer_list timer;
32 atomic_t closing;
33
34 struct cache_stat_collector collector;

--- 28 unchanged lines hidden ---