]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/kdb-Commited_AS-fix
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / kdb-Commited_AS-fix
1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: [PATCH] kdb: account for vm_committed_space -> vm_committed_as change
3 References: bnc#505831
4
5 patches.fixes/mm-fix-Commited_AS-underflow-on-large-NR_CPUS changed
6 vm_committed_space to a percpu. This patch accounts for that in the kdb code.
7
8 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
9 ---
10 fs/proc/proc_misc.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 --- a/fs/proc/proc_misc.c
14 +++ b/fs/proc/proc_misc.c
15 @@ -258,7 +258,7 @@ kdb_meminfo_read_proc(void)
16 #define K(x) ((x) << (PAGE_SHIFT - 10))
17 si_meminfo(&i);
18 kdb_si_swapinfo(&i);
19 - committed = atomic_read(&vm_committed_space);
20 + committed = percpu_counter_read_positive(&vm_committed_as);
21 allowed = ((totalram_pages - hugetlb_total_pages())
22 * sysctl_overcommit_ratio / 100) + total_swap_pages;
23