aboutsummaryrefslogtreecommitdiff
path: root/fs/afs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/inode.c')
-rw-r--r--fs/afs/inode.c3
1 files changed, 3 insertions, 0 deletions
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