linux-use-d-prune-aliases-instead-of-try-dcache-children-20020712
authorChas Williams <chas@cmf.nrl.navy.mil>
Fri, 12 Jul 2002 21:41:59 +0000 (21:41 +0000)
committerDerrick 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

index a0824a1..9f9526e 100644 (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 */