patch-pre2.0.11 linux/include/linux/swap.h

Next file: linux/include/linux/sysctl.h
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.10/linux/include/linux/swap.h linux/include/linux/swap.h
@@ -9,6 +9,8 @@
 
 #ifdef __KERNEL__
 
+#include <asm/atomic.h>
+
 #define SWP_USED	1
 #define SWP_WRITEOK	3
 
@@ -32,7 +34,7 @@
 
 extern int nr_swap_pages;
 extern int nr_free_pages;
-extern int nr_async_pages;
+extern atomic_t nr_async_pages;
 extern int min_free_pages;
 extern int free_pages_low;
 extern int free_pages_high;

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