patch-2.1.60 linux/mm/vmscan.c
Next file: linux/net/netsyms.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
-  Lines: 23
-  Date:
Thu Oct 23 13:30:25 1997
-  Orig file: 
v2.1.59/linux/mm/vmscan.c
-  Orig date: 
Wed Oct 15 16:04:24 1997
diff -u --recursive --new-file v2.1.59/linux/mm/vmscan.c linux/mm/vmscan.c
@@ -17,12 +17,11 @@
 #include <linux/kernel_stat.h>
 #include <linux/errno.h>
 #include <linux/string.h>
-#include <linux/stat.h>
 #include <linux/swap.h>
-#include <linux/fs.h>
 #include <linux/swapctl.h>
 #include <linux/smp_lock.h>
 #include <linux/slab.h>
+#include <linux/dcache.h>
 
 #include <asm/bitops.h>
 #include <asm/pgtable.h>
@@ -352,6 +351,8 @@
 	int i=6;
 	int stop;
 
+	/* Let the dcache know we're looking for memory ... */
+	shrink_dcache_memory();
 	/* Always trim SLAB caches when memory gets low. */
 	(void) kmem_cache_reap(0, dma, wait);
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov