diff options
author | David Howells <dhowells@redhat.com> | 2018-04-06 14:17:24 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-04-09 21:53:54 +0100 |
commit | d55b4da4331efdfe2be1bcc7bc217bd3f7c47870 (patch) | |
tree | 05318157503c9621feda308c0ef95bc2ffce36f7 /fs/afs/dir.c | |
parent | 888b33846111927d94dee6d8187c72515160edd3 (diff) | |
download | lwn-d55b4da4331efdfe2be1bcc7bc217bd3f7c47870.tar.gz lwn-d55b4da4331efdfe2be1bcc7bc217bd3f7c47870.zip |
afs: Introduce a statistics proc file
Introduce a proc file that displays a bunch of statistics for the AFS
filesystem in the current network namespace.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/dir.c')
-rw-r--r-- | fs/afs/dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index b073976db8d2..538ca18efe0d 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -206,6 +206,7 @@ bool afs_dir_check_page(struct inode *dir, struct page *page) } checked: + afs_stat_v(vnode, n_read_dir); SetPageChecked(page); return true; @@ -868,6 +869,7 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, dentry->d_name.name[dentry->d_name.len - 1] == 's') return afs_lookup_atsys(dir, dentry, key); + afs_stat_v(dvnode, n_lookup); inode = afs_do_lookup(dir, dentry, key); if (IS_ERR(inode)) { ret = PTR_ERR(inode); @@ -1062,6 +1064,7 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags) goto out_valid; /* the dir contents are unchanged */ _debug("dir modified"); + afs_stat_v(dir, n_reval); /* search the directory for this vnode */ ret = afs_do_lookup_one(&dir->vfs_inode, dentry, &fid, key); |