fscache, cachefiles: Display stat of culling events
authorDavid Howells <dhowells@redhat.com>
Fri, 22 Oct 2021 08:17:58 +0000 (09:17 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Jan 2022 13:43:18 +0000 (13:43 +0000)
commit9f08ebc3438baaaefcc79654b330209b83397f17
treec4a34bbcb7eb56afd6f23ba9c2b356e412178430
parent3929eca769b5a231010b4978acc61c0735da198f
fscache, cachefiles: Display stat of culling events

Add a stat counter of culling events whereby the cache backend culls a file
to make space (when asked by cachefilesd in this case) and display in
/proc/fs/fscache/stats.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819654165.215744.3797804661644212436.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906961387.143852.9291157239960289090.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967168266.1823006.14436200166581605746.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021567619.640689.4339228906248763197.stgit@warthog.procyon.org.uk/
fs/cachefiles/namei.c
fs/fscache/stats.c
include/linux/fscache-cache.h