summaryrefslogtreecommitdiff
path: root/fs/nfsd/filecache.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-07-08 14:24:12 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-07-29 20:09:22 -0400
commit904940e94a887701db24401e3ed6928a1d4e329f (patch)
tree72f74dc052c0fc5ae0a1f27ea05c2b90bf1ffcb4 /fs/nfsd/filecache.h
parentd63293272abb51c02457f1017dfd61c3270d9ae3 (diff)
NFSD: Report average age of filecache items
This is a measure of how long items stay in the filecache, to help assess how efficient the cache is. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/filecache.h')
-rw-r--r--fs/nfsd/filecache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/filecache.h b/fs/nfsd/filecache.h
index c9e3c6eb4776..c6ad5fe47f12 100644
--- a/fs/nfsd/filecache.h
+++ b/fs/nfsd/filecache.h
@@ -44,6 +44,7 @@ struct nfsd_file {
refcount_t nf_ref;
unsigned char nf_may;
struct nfsd_file_mark *nf_mark;
+ ktime_t nf_birthtime;
};
int nfsd_file_cache_init(void);