From 0553066a230e94ddd7d7e0959528311d37b0a94c Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 21 Jan 2009 21:33:43 +0000 Subject: [PATCH] DEVEL15-disconnected-linux-dont-inactive-while-disconnected-20090121 LICENSE IPL10 FIXES 124175 possibly not the ultimate right fix but it will make things work for now (cherry picked from commit 81e1d5403438929bc6380c05bdacb808a31aaa37) --- src/afs/LINUX/osi_vnodeops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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