FS-Cache: Count culled objects and objects rejected due to lack of space
authorDavid Howells <dhowells@redhat.com>
Thu, 19 Feb 2015 23:47:31 +0000 (23:47 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 24 Feb 2015 10:05:27 +0000 (10:05 +0000)
commit182d919b84902eece162c63ed3d476c8016b4197
treec2f02f26cdcaa4718121c94e8b050a598fab5f8c
parentb2b89ebfc0f0287e20516a5443d93af309b800cf
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>
Documentation/filesystems/caching/backend-api.txt
Documentation/filesystems/caching/fscache.txt
fs/cachefiles/internal.h
fs/cachefiles/namei.c
fs/fscache/internal.h
fs/fscache/object.c
fs/fscache/stats.c
include/linux/fscache-cache.h