diff options
author | David Howells <dhowells@redhat.com> | 2015-02-20 02:47:31 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-02-24 13:05:27 +0300 |
commit | 182d919b84902eece162c63ed3d476c8016b4197 (patch) | |
tree | c2f02f26cdcaa4718121c94e8b050a598fab5f8c /fs/fscache/internal.h | |
parent | b2b89ebfc0f0287e20516a5443d93af309b800cf (diff) | |
download | linux-182d919b84902eece162c63ed3d476c8016b4197.tar.xz |
FS-Cache: Count culled objects and objects rejected due to lack of space
Count the number of objects that get culled by the cache backend and the
number of objects that the cache backend declines to instantiate due to lack
of space in the cache.
These numbers are made available through /proc/fs/fscache/stats
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Steve Dickson <steved@redhat.com>
Acked-by: Jeff Layton <jeff.layton@primarydata.com>
Diffstat (limited to 'fs/fscache/internal.h')
-rw-r--r-- | fs/fscache/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h index 7872a62ef30c..3063a58b7d3d 100644 --- a/fs/fscache/internal.h +++ b/fs/fscache/internal.h @@ -271,6 +271,11 @@ extern atomic_t fscache_n_cop_write_page; extern atomic_t fscache_n_cop_uncache_page; extern atomic_t fscache_n_cop_dissociate_pages; +extern atomic_t fscache_n_cache_no_space_reject; +extern atomic_t fscache_n_cache_stale_objects; +extern atomic_t fscache_n_cache_retired_objects; +extern atomic_t fscache_n_cache_culled_objects; + static inline void fscache_stat(atomic_t *stat) { atomic_inc(stat); |