diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index a0824a11e9..9f9526ed39 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -481,6 +481,13 @@ static void afs_TryFlushDcacheChildren(struct vcache *tvc) struct list_head *head = &ip->i_dentry; struct dentry *dentry; +#if 1 + VN_HOLD(tvc); + AFS_GUNLOCK(); + d_prune_aliases(ip); + AFS_GLOCK(); + VN_RELE(tvc); +#else restart: DLOCK(); cur = head; @@ -536,7 +543,7 @@ restart: } } DUNLOCK(); - +#endif } #endif /* AFS_LINUX22_ENV */