public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] mm: Fix overcommit overflow
@ 2008-04-30 20:42 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2008-04-30 20:42 UTC (permalink / raw)
  To: akpm, linux-kernel, linux-mm

Thanks, one more reason to boot to 2.6.24.5...

This patch needed, too, I guess.

From: Sami Farin <safari-kernel@safari.iki.fi>
Signed-off-by: Sami Farin <safari-kernel@safari.iki.fi>
Signed-off-by: Alan Cox <alan@redhat.com>
Tested-by: Sami Farin <safari-kernel@safari.iki.fi>

diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 3462bfd..a208a7b 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -132,7 +132,7 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
 #define K(x) ((x) << (PAGE_SHIFT - 10))
 	si_meminfo(&i);
 	si_swapinfo(&i);
-	committed = atomic_read(&vm_committed_space);
+	committed = vm_atomic_read(&vm_committed_space);
 	allowed = ((totalram_pages - hugetlb_total_pages())
 		* sysctl_overcommit_ratio / 100) + total_swap_pages;
 


-- 
Do what you love because life is too short for anything else.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-30 20:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 20:42 [PATCH 2/2] mm: Fix overcommit overflow Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox