mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
0c03f8607e
commit
bdc894b945
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user