patch-2.4.23 linux-2.4.23/arch/sparc/kernel/sys_sunos.c

Next file: linux-2.4.23/arch/sparc/lib/checksum.S
Previous file: linux-2.4.23/arch/sparc/kernel/sun4d_smp.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/sparc/kernel/sys_sunos.c linux-2.4.23/arch/sparc/kernel/sys_sunos.c
@@ -193,7 +193,7 @@
 	 * fool it, but this should catch most mistakes.
 	 */
 	freepages = atomic_read(&buffermem_pages) >> PAGE_SHIFT;
-	freepages += atomic_read(&page_cache_size);
+	freepages += page_cache_size;
 	freepages >>= 1;
 	freepages += nr_free_pages();
 	freepages += nr_swap_pages;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)