patch-2.2.0-final linux/fs/dcache.c

Next file: linux/fs/inode.c
Previous file: linux/fs/coda/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre9/linux/fs/dcache.c linux/fs/dcache.c
@@ -480,17 +480,6 @@
 	char * str;
 	struct dentry *dentry;
 
-	/*
-	 * Prune the dcache if there are too many unused dentries.
-	 */
-	if (dentry_stat.nr_unused > 3*(nr_inodes >> 1)) {
-#ifdef DCACHE_DEBUG
-printk("d_alloc: %d unused, pruning dcache\n", dentry_stat.nr_unused);
-#endif
-		prune_dcache(8);
-		free_inode_memory(8);
-	}
-
 	dentry = kmem_cache_alloc(dentry_cache, GFP_KERNEL); 
 	if (!dentry)
 		return NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov