diff options
author | David Howells <dhowells@redhat.com> | 2009-11-19 13:11:38 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-11-19 13:11:38 -0500 |
commit | 2175bb06dc6cf2af9c098a1770561f9e63edae4e (patch) | |
tree | 579c8d4b3f4f92efee919953dab2c78cea8c21ea /fs/fscache/cookie.c | |
parent | 201a15428bd54f83eccec8b7c64a04b8f9431204 (diff) |
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/cookie.c')
-rw-r--r-- | fs/fscache/cookie.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c index f979659c1b3f..990535071a8a 100644 --- a/fs/fscache/cookie.c +++ b/fs/fscache/cookie.c | |||
@@ -415,6 +415,8 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire) | |||
415 | unsigned long event; | 415 | unsigned long event; |
416 | 416 | ||
417 | fscache_stat(&fscache_n_relinquishes); | 417 | fscache_stat(&fscache_n_relinquishes); |
418 | if (retire) | ||
419 | fscache_stat(&fscache_n_relinquishes_retire); | ||
418 | 420 | ||
419 | if (!cookie) { | 421 | if (!cookie) { |
420 | fscache_stat(&fscache_n_relinquishes_null); | 422 | fscache_stat(&fscache_n_relinquishes_null); |