From bdc894b9458817a1d5a9870d517e239c69d90f8e Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Tue, 9 Oct 2001 01:07:41 +0000 Subject: [PATCH] linux-dcache-cleanup-aggressively-to-avoid-having-too-many-vcache-entries-locked-down-20011008 less aggressive, though, than the "don't use the dcache at all" d_drop solution i proposed. --- src/afs/afs_vcache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 4917b0d19..bad48b281 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -568,6 +568,10 @@ struct vcache *afs_NewVCache(struct VenusFid *afid, struct server *serverp, int vmax = 2 * afs_cacheStats; int vn = VCACHE_FREE; + AFS_GUNLOCK(); + shrink_dcache_sb(afs_globalVFS); + AFS_GLOCK(); + i = 0; for(tq = VLRU.prev; tq != &VLRU && vn > 0; tq = uq) { tvc = QTOV(tq); -- 2.39.5