patch-1.3.11 linux/mm/swap.c

Next file: linux/net/appletalk/aarp.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.10/linux/mm/swap.c linux/mm/swap.c
@@ -82,7 +82,7 @@
 	swap_cache_add_total++;
 #endif
 	if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) {
-		entry = (unsigned long) xchg_ptr(swap_cache + MAP_NR(addr), (void *) entry);
+		entry = xchg(swap_cache + MAP_NR(addr), entry);
 		if (entry)  {
 			printk("swap_cache: replacing non-NULL entry\n");
 		}

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