patch-1.3.47 linux/mm/swap.c

Next file: linux/mm/vmalloc.c
Previous file: linux/mm/mprotect.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.46/linux/mm/swap.c linux/mm/swap.c
@@ -457,7 +457,7 @@
 				return 0;
 			vma->vm_mm->rss--;
 			set_pte(page_table, __pte(entry));
-			invalidate();
+			invalidate_page(vma->vm_mm, address);
 			tsk->nswap++;
 			write_swap_page(entry, (char *) page);
 		}
@@ -472,13 +472,13 @@
 		}
 		vma->vm_mm->rss--;
 		set_pte(page_table, __pte(entry));
-		invalidate();
+		invalidate_page(vma->vm_mm, address);
 		free_page(page);
 		return 1;
 	} 
 	vma->vm_mm->rss--;
 	pte_clear(page_table);
-	invalidate();
+	invalidate_page(vma->vm_mm, address);
 	entry = mem_map[MAP_NR(page)].count;
 	free_page(page);
 	return entry;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this