From: Dave A. <ai...@us...> - 2001-06-17 12:39:22
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm In directory usw-pr-cvs1:/tmp/cvs-serv21038 Modified Files: pgalloc.h Log Message: DA: free the vmalloc'ed area for the pgd, fix free_pte_slow to just clear the pte.. Index: pgalloc.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm/pgalloc.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- pgalloc.h 2001/06/16 16:58:45 1.6 +++ pgalloc.h 2001/06/17 12:39:19 1.7 @@ -126,6 +126,7 @@ extern __inline__ void free_pgd_slow(pgd_t *pgd) { + vfree((void *)pgd[0].br); free_page((unsigned long)pgd); } @@ -153,9 +154,11 @@ pgtable_cache_size++; } +/* we don't allocate any space for pte, just clear the one passed to us */ extern __inline__ void free_pte_slow(pte_t *pte) { - free_page((unsigned long)pte); + pte_clear(pte); +/* free_page((unsigned long)pte);*/ } #define pte_free_kernel(pte) free_pte_slow(pte) |