mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
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:
parent
c927f48236
commit
6ed4fae804
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user