patch-1.3.11 linux/include/linux/mm.h

Next file: linux/include/linux/netdevice.h
Previous file: linux/include/asm-i386/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.10/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -275,7 +275,7 @@
 #ifdef SWAP_CACHE_INFO
 	swap_cache_find_total++;
 #endif
-	entry = (unsigned long) xchg_ptr(swap_cache + MAP_NR(addr), NULL);
+	entry = xchg(swap_cache + MAP_NR(addr), 0);
 #ifdef SWAP_CACHE_INFO
 	if (entry)
 		swap_cache_find_success++;
@@ -290,7 +290,7 @@
 #ifdef SWAP_CACHE_INFO
 	swap_cache_del_total++;
 #endif	
-	entry= (unsigned long) xchg_ptr(swap_cache + MAP_NR(addr), NULL);
+	entry= xchg(swap_cache + MAP_NR(addr), 0);
 	if (entry)  {
 #ifdef SWAP_CACHE_INFO
 		swap_cache_del_success++;

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