git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c927f48
)
linux-use-d-prune-aliases-instead-of-try-dcache-children-20020712
author
Chas Williams
<chas@cmf.nrl.navy.mil>
Fri, 12 Jul 2002 21:41:59 +0000 (21:41 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Fri, 12 Jul 2002 21:41:59 +0000 (21:41 +0000)
clean up dcache entries with function provided in the kernel instead
of by making our own. experimental.
src/afs/afs_vcache.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_vcache.c
b/src/afs/afs_vcache.c
index
a0824a1
..
9f9526e
100644
(file)
--- a/
src/afs/afs_vcache.c
+++ b/
src/afs/afs_vcache.c
@@
-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 */