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.
This commit is contained in:
Chaskiel M Grundman 2001-10-09 01:07:41 +00:00 committed by Derrick Brashear
parent 0c03f8607e
commit bdc894b945

View File

@ -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);