|
@@ -247,10 +247,11 @@ size_t lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc)
|
|
* progress) and "changed", when this in fact lead to an successful
|
|
* progress) and "changed", when this in fact lead to an successful
|
|
* update of the cache.
|
|
* update of the cache.
|
|
*/
|
|
*/
|
|
- return seq_printf(seq, "\t%s: used:%u/%u "
|
|
|
|
- "hits:%lu misses:%lu starving:%lu locked:%lu changed:%lu\n",
|
|
|
|
- lc->name, lc->used, lc->nr_elements,
|
|
|
|
- lc->hits, lc->misses, lc->starving, lc->locked, lc->changed);
|
|
|
|
|
|
+ seq_printf(seq, "\t%s: used:%u/%u hits:%lu misses:%lu starving:%lu locked:%lu changed:%lu\n",
|
|
|
|
+ lc->name, lc->used, lc->nr_elements,
|
|
|
|
+ lc->hits, lc->misses, lc->starving, lc->locked, lc->changed);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)
|
|
static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)
|