patch-2.1.115 linux/arch/m68k/mm/init.c
Next file: linux/arch/m68k/mm/memory.c
Previous file: linux/arch/m68k/defconfig
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Aug 4 12:58:48 1998
- Orig file:
v2.1.114/linux/arch/m68k/mm/init.c
- Orig date:
Mon Aug 3 12:45:44 1998
diff -u --recursive --new-file v2.1.114/linux/arch/m68k/mm/init.c linux/arch/m68k/mm/init.c
@@ -31,6 +31,20 @@
extern void init_kpointer_table(void);
extern void show_net_buffers(void);
+int do_check_pgt_cache(int low, int high)
+{
+ int freed = 0;
+ if(pgtable_cache_size > high) {
+ do {
+ if(pmd_quicklist)
+ freed += free_pmd_slow(get_pmd_fast());
+ if(pte_quicklist)
+ free_pte_slow(get_pte_fast()), freed++;
+ } while(pgtable_cache_size > low);
+ }
+ return freed;
+}
+
/*
* BAD_PAGE is the page that is used for page faults when linux
* is out-of-memory. Older versions of linux just did a
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov