Skip to contentSkip to conversation

mm: Fix overcommit overflow

PATCH In review Alan Cox 1 participant 1 message Apr 30, 2008 Proc filesystem

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 2/2 mm: Fix overcommit overflow

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

This patch needed, too, I guess.

From: Sami Farin <[email protected]>

fs/proc/proc_misc.c +1 -1
index 3462bfd..a208a7b 100644
@@ -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;
 
Signature · 1 line
Do what you love because life is too short for anything else.