.. | .. |
---|
109 | 109 | |
---|
110 | 110 | void bch_cache_accounting_clear(struct cache_accounting *acc) |
---|
111 | 111 | { |
---|
112 | | - memset(&acc->total.cache_hits, |
---|
113 | | - 0, |
---|
114 | | - sizeof(unsigned long) * 7); |
---|
| 112 | + acc->total.cache_hits = 0; |
---|
| 113 | + acc->total.cache_misses = 0; |
---|
| 114 | + acc->total.cache_bypass_hits = 0; |
---|
| 115 | + acc->total.cache_bypass_misses = 0; |
---|
| 116 | + acc->total.cache_readaheads = 0; |
---|
| 117 | + acc->total.cache_miss_collisions = 0; |
---|
| 118 | + acc->total.sectors_bypassed = 0; |
---|
115 | 119 | } |
---|
116 | 120 | |
---|
117 | 121 | void bch_cache_accounting_destroy(struct cache_accounting *acc) |
---|