patch-pre2.0.11 linux/mm/swap.c

Next file: linux/net/bridge/Makefile
Previous file: linux/mm/page_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.10/linux/mm/swap.c linux/mm/swap.c
@@ -44,7 +44,7 @@
 
 /* We track the number of pages currently being asynchronously swapped
    out, so that we don't try to swap TOO many pages out at once */
-int nr_async_pages = 0;
+atomic_t nr_async_pages = 0;
 
 /*
  * Constants for the page aging mechanism: the maximum age (actually,

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