|
@@ -24,7 +24,6 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
|
|
|
{
|
|
|
struct sysinfo i;
|
|
|
unsigned long committed;
|
|
|
- unsigned long allowed;
|
|
|
struct vmalloc_info vmi;
|
|
|
long cached;
|
|
|
unsigned long pages[NR_LRU_LISTS];
|
|
@@ -37,8 +36,6 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
|
|
|
si_meminfo(&i);
|
|
|
si_swapinfo(&i);
|
|
|
committed = percpu_counter_read_positive(&vm_committed_as);
|
|
|
- allowed = ((totalram_pages - hugetlb_total_pages())
|
|
|
- * sysctl_overcommit_ratio / 100) + total_swap_pages;
|
|
|
|
|
|
cached = global_page_state(NR_FILE_PAGES) -
|
|
|
total_swapcache_pages() - i.bufferram;
|
|
@@ -147,7 +144,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
|
|
|
K(global_page_state(NR_UNSTABLE_NFS)),
|
|
|
K(global_page_state(NR_BOUNCE)),
|
|
|
K(global_page_state(NR_WRITEBACK_TEMP)),
|
|
|
- K(allowed),
|
|
|
+ K(vm_commit_limit()),
|
|
|
K(committed),
|
|
|
(unsigned long)VMALLOC_TOTAL >> 10,
|
|
|
vmi.used >> 10,
|