patch-pre2.0.11 linux/mm/page_io.c
Next file: linux/mm/swap.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Jun  3 15:38:37 1996
-  Orig file: 
pre2.0.10/linux/mm/page_io.c
-  Orig date: 
Fri May 31 08:02:20 1996
diff -u --recursive --new-file pre2.0.10/linux/mm/page_io.c linux/mm/page_io.c
@@ -84,7 +84,7 @@
 			set_bit(PG_decr_after, &page->flags);
 			set_bit(PG_swap_unlock_after, &page->flags);
 			page->swap_unlock_entry = entry;
-			nr_async_pages++;
+			atomic_inc(&nr_async_pages);
 		}
 		ll_rw_page(rw,p->swap_device,offset,buf);
 		/*
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