diff options
author | David Howells <dhowells@redhat.com> | 2009-11-19 18:11:38 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-11-19 18:11:38 +0000 |
commit | 2175bb06dc6cf2af9c098a1770561f9e63edae4e (patch) | |
tree | 579c8d4b3f4f92efee919953dab2c78cea8c21ea /fs/fscache/stats.c | |
parent | 201a15428bd54f83eccec8b7c64a04b8f9431204 (diff) | |
download | kernel_samsung_smdk4412-2175bb06dc6cf2af9c098a1770561f9e63edae4e.zip kernel_samsung_smdk4412-2175bb06dc6cf2af9c098a1770561f9e63edae4e.tar.gz kernel_samsung_smdk4412-2175bb06dc6cf2af9c098a1770561f9e63edae4e.tar.bz2 |
FS-Cache: Add a retirement stat counter
Add a stat counter to count retirement events rather than ordinary release
events (the retire argument to fscache_relinquish_cookie()).
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/fscache/stats.c')
-rw-r--r-- | fs/fscache/stats.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c index cda6999..9e15289 100644 --- a/fs/fscache/stats.c +++ b/fs/fscache/stats.c @@ -85,6 +85,7 @@ atomic_t fscache_n_updates_run; atomic_t fscache_n_relinquishes; atomic_t fscache_n_relinquishes_null; atomic_t fscache_n_relinquishes_waitcrt; +atomic_t fscache_n_relinquishes_retire; atomic_t fscache_n_cookie_index; atomic_t fscache_n_cookie_data; @@ -168,10 +169,11 @@ static int fscache_stats_show(struct seq_file *m, void *v) atomic_read(&fscache_n_updates_null), atomic_read(&fscache_n_updates_run)); - seq_printf(m, "Relinqs: n=%u nul=%u wcr=%u\n", + seq_printf(m, "Relinqs: n=%u nul=%u wcr=%u rtr=%u\n", atomic_read(&fscache_n_relinquishes), atomic_read(&fscache_n_relinquishes_null), - atomic_read(&fscache_n_relinquishes_waitcrt)); + atomic_read(&fscache_n_relinquishes_waitcrt), + atomic_read(&fscache_n_relinquishes_retire)); seq_printf(m, "AttrChg: n=%u ok=%u nbf=%u oom=%u run=%u\n", atomic_read(&fscache_n_attr_changed), |