From 6ed4fae804ce197e71ed8baeff061ba66402e5ad Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Fri, 12 Jul 2002 21:41:59 +0000 Subject: [PATCH] linux-use-d-prune-aliases-instead-of-try-dcache-children-20020712 clean up dcache entries with function provided in the kernel instead of by making our own. experimental. --- src/afs/afs_vcache.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */