From d55b4da4331efdfe2be1bcc7bc217bd3f7c47870 Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 6 Apr 2018 14:17:24 +0100 Subject: 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 --- fs/afs/inode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/afs/inode.c') diff --git a/fs/afs/inode.c b/fs/afs/inode.c index d5db9dead18ca..f4e62964efcb6 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -366,6 +366,9 @@ void afs_zap_data(struct afs_vnode *vnode) { _enter("{%x:%u}", vnode->fid.vid, vnode->fid.vnode); + if (S_ISDIR(vnode->vfs_inode.i_mode)) + afs_stat_v(vnode, n_inval); + #ifdef CONFIG_AFS_FSCACHE fscache_invalidate(vnode->cache); #endif -- cgit v1.2.3