From: Chas Williams Date: Fri, 12 Jul 2002 21:41:59 +0000 (+0000) Subject: linux-use-d-prune-aliases-instead-of-try-dcache-children-20020712 X-Git-Tag: openafs-devel_1_3_3~72 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6ed4fae804ce197e71ed8baeff061ba66402e5ad;p=packages%2Fo%2Fopenafs.git 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. --- diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index a0824a11e..9f9526ed3 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 */