aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/stats.c')
-rw-r--r--fs/fscache/stats.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c
index 65deb99e756b..20233fb44bfd 100644
--- a/fs/fscache/stats.c
+++ b/fs/fscache/stats.c
@@ -93,6 +93,23 @@ atomic_t fscache_n_checkaux_okay;
93atomic_t fscache_n_checkaux_update; 93atomic_t fscache_n_checkaux_update;
94atomic_t fscache_n_checkaux_obsolete; 94atomic_t fscache_n_checkaux_obsolete;
95 95
96atomic_t fscache_n_cop_alloc_object;
97atomic_t fscache_n_cop_lookup_object;
98atomic_t fscache_n_cop_lookup_complete;
99atomic_t fscache_n_cop_grab_object;
100atomic_t fscache_n_cop_update_object;
101atomic_t fscache_n_cop_drop_object;
102atomic_t fscache_n_cop_put_object;
103atomic_t fscache_n_cop_sync_cache;
104atomic_t fscache_n_cop_attr_changed;
105atomic_t fscache_n_cop_read_or_alloc_page;
106atomic_t fscache_n_cop_read_or_alloc_pages;
107atomic_t fscache_n_cop_allocate_page;
108atomic_t fscache_n_cop_allocate_pages;
109atomic_t fscache_n_cop_write_page;
110atomic_t fscache_n_cop_uncache_page;
111atomic_t fscache_n_cop_dissociate_pages;
112
96/* 113/*
97 * display the general statistics 114 * display the general statistics
98 */ 115 */
@@ -192,6 +209,26 @@ static int fscache_stats_show(struct seq_file *m, void *v)
192 atomic_read(&fscache_n_op_deferred_release), 209 atomic_read(&fscache_n_op_deferred_release),
193 atomic_read(&fscache_n_op_release), 210 atomic_read(&fscache_n_op_release),
194 atomic_read(&fscache_n_op_gc)); 211 atomic_read(&fscache_n_op_gc));
212
213 seq_printf(m, "CacheOp: alo=%d luo=%d luc=%d gro=%d\n",
214 atomic_read(&fscache_n_cop_alloc_object),
215 atomic_read(&fscache_n_cop_lookup_object),
216 atomic_read(&fscache_n_cop_lookup_complete),
217 atomic_read(&fscache_n_cop_grab_object));
218 seq_printf(m, "CacheOp: upo=%d dro=%d pto=%d atc=%d syn=%d\n",
219 atomic_read(&fscache_n_cop_update_object),
220 atomic_read(&fscache_n_cop_drop_object),
221 atomic_read(&fscache_n_cop_put_object),
222 atomic_read(&fscache_n_cop_attr_changed),
223 atomic_read(&fscache_n_cop_sync_cache));
224 seq_printf(m, "CacheOp: rap=%d ras=%d alp=%d als=%d wrp=%d ucp=%d dsp=%d\n",
225 atomic_read(&fscache_n_cop_read_or_alloc_page),
226 atomic_read(&fscache_n_cop_read_or_alloc_pages),
227 atomic_read(&fscache_n_cop_allocate_page),
228 atomic_read(&fscache_n_cop_allocate_pages),
229 atomic_read(&fscache_n_cop_write_page),
230 atomic_read(&fscache_n_cop_uncache_page),
231 atomic_read(&fscache_n_cop_dissociate_pages));
195 return 0; 232 return 0;
196} 233}
197 234