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.
This commit is contained in:
Chas Williams 2002-07-12 21:41:59 +00:00 committed by Derrick Brashear
parent c927f48236
commit 6ed4fae804

View File

@ -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 */