]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: keep some rudimentary stats on nfsd_file cache
authorJeff Layton <jlayton@poochiereds.net>
Tue, 20 Oct 2015 17:33:43 +0000 (13:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Oct 2015 19:57:39 +0000 (15:57 -0400)
commit9a9d575074e72f58a4aba80fd6078c6d98072af8
treef6d5055343c4f75cf854f12224f2b89f35e6fc2a
parent1c29dd2f56b16da19b18979012447813e781ccb5
nfsd: keep some rudimentary stats on nfsd_file cache

Per chain count and max length, protected by the per-chain spinlock.
When the file is read, we walk the array of buckets and fetch the
count from each.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c
fs/nfsd/filecache.h
fs/nfsd/nfsctl.c