stats.h (27eb2c4b3d3e13f376a359e293c212a2e9407af5) stats.h (220bb38c21b83e2f7b842f33220bf727093eca89)
1#ifndef _BCACHE_STATS_H_
2#define _BCACHE_STATS_H_
3
4struct cache_stat_collector {
5 atomic_t cache_hits;
6 atomic_t cache_misses;
7 atomic_t cache_bypass_hits;
8 atomic_t cache_bypass_misses;

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

33 struct cache_stat_collector collector;
34
35 struct cache_stats total;
36 struct cache_stats five_minute;
37 struct cache_stats hour;
38 struct cache_stats day;
39};
40
1#ifndef _BCACHE_STATS_H_
2#define _BCACHE_STATS_H_
3
4struct cache_stat_collector {
5 atomic_t cache_hits;
6 atomic_t cache_misses;
7 atomic_t cache_bypass_hits;
8 atomic_t cache_bypass_misses;

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

33 struct cache_stat_collector collector;
34
35 struct cache_stats total;
36 struct cache_stats five_minute;
37 struct cache_stats hour;
38 struct cache_stats day;
39};
40
41struct search;
41struct cache_set;
42struct cached_dev;
43struct bcache_device;
42
43void bch_cache_accounting_init(struct cache_accounting *acc,
44 struct closure *parent);
45
46int bch_cache_accounting_add_kobjs(struct cache_accounting *acc,
47 struct kobject *parent);
48
49void bch_cache_accounting_clear(struct cache_accounting *acc);
50
51void bch_cache_accounting_destroy(struct cache_accounting *acc);
52
44
45void bch_cache_accounting_init(struct cache_accounting *acc,
46 struct closure *parent);
47
48int bch_cache_accounting_add_kobjs(struct cache_accounting *acc,
49 struct kobject *parent);
50
51void bch_cache_accounting_clear(struct cache_accounting *acc);
52
53void bch_cache_accounting_destroy(struct cache_accounting *acc);
54
53void bch_mark_cache_accounting(struct search *s, bool hit, bool bypass);
54void bch_mark_cache_readahead(struct search *s);
55void bch_mark_cache_miss_collision(struct search *s);
56void bch_mark_sectors_bypassed(struct search *s, int sectors);
55void bch_mark_cache_accounting(struct cache_set *, struct bcache_device *,
56 bool, bool);
57void bch_mark_cache_readahead(struct cache_set *, struct bcache_device *);
58void bch_mark_cache_miss_collision(struct cache_set *, struct bcache_device *);
59void bch_mark_sectors_bypassed(struct cache_set *, struct cached_dev *, int);
57
58#endif /* _BCACHE_STATS_H_ */
60
61#endif /* _BCACHE_STATS_H_ */