diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 6b99656db7..8cc6a58ec6 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -999,7 +999,9 @@ afs_dentry_iput(struct dentry *dp, struct inode *ip) struct vcache *vcp = VTOAFS(ip); AFS_GLOCK(); - (void) afs_InactiveVCache(vcp, NULL); + if (!AFS_IS_DISCONNECTED || (vcp->states & CUnlinked)) { + (void) afs_InactiveVCache(vcp, NULL); + } AFS_GUNLOCK(); #ifdef DCACHE_NFSFS_RENAMED #ifdef AFS_LINUX26_ENV