patch-2.1.115 linux/arch/i386/mm/init.c
Next file: linux/arch/m68k/config.in
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Aug 4 12:58:48 1998
- Orig file:
v2.1.114/linux/arch/i386/mm/init.c
- Orig date:
Tue Jul 21 00:15:30 1998
diff -u --recursive --new-file v2.1.114/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -88,6 +88,21 @@
return (pte_t *) (pmd_page(*pmd) + offset);
}
+int do_check_pgt_cache(int low, int high)
+{
+ int freed = 0;
+ if(pgtable_cache_size > high) {
+ do {
+ if(pgd_quicklist)
+ free_pgd_slow(get_pgd_fast()), freed++;
+ if(pmd_quicklist)
+ free_pmd_slow(get_pmd_fast()), freed++;
+ 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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov