Revert "LINUX: do not use d_invalidate to evict dentries"
[openafs.git] / src / afs / LINUX / osi_vcache.c
index 23040b1..bc74b67 100644 (file)
@@ -24,13 +24,6 @@ TryEvictDentries(struct vcache *avc)
     struct hlist_node *p;
 #endif
 
-#if defined(D_INVALIDATE_IS_VOID)
-    /* At this kernel level, d_invalidate always succeeds;
-     * that is, it will now invalidate even an active directory,
-     * Therefore we must use a different method to evict dentries.
-     */
-    d_prune_aliases(inode);
-#else
 #if defined(HAVE_DCACHE_LOCK)
     spin_lock(&dcache_lock);
 
@@ -85,7 +78,6 @@ restart:
     spin_unlock(&inode->i_lock);
 #endif /* HAVE_DCACHE_LOCK */
 inuse:
-#endif /* D_INVALIDATE_IS_VOID */
     return;
 }