diff options
author | Shiraz Hashim <shashim@codeaurora.org> | 2017-10-27 11:49:01 +0530 |
---|---|---|
committer | Naveen Kumar <kumarn@codeaurora.org> | 2018-08-29 16:00:06 +0530 |
commit | 36db826697cf2f4debafeaeaaabf5a968afdda7f (patch) | |
tree | 2c77213fd0e776a5cd1145db86be7d0afafb128f | |
parent | a9db66eda84dda6953b2a7a330c1f09abcaf9630 (diff) |
mm: vmalloc: don't print lowmem informationLA.UM.7.6.2.r1-03000-89xx.0
With CONFIG_ENABLE_VMALLOC_SAVING enabled, carve-outs are
reused as vmalloc space. Since vmalloc space is now spread
across whole of kernel virtual memory, vmallocinfo prints
lowmem information as well.
Remove lowmem information from vmallocinfo as it isn't
expected.
Change-Id: I3ec2995eb5460fd44cef84207a960fe5a3bd04db
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
-rw-r--r-- | mm/vmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 6b5f0bce0bd2..67ef013ed6f4 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2761,6 +2761,9 @@ static int s_show(struct seq_file *m, void *p) v = va->vm; + if (v->flags & VM_LOWMEM) + return 0; + seq_printf(m, "0x%pK-0x%pK %7ld", v->addr, v->addr + v->size, v->size); @@ -2788,9 +2791,6 @@ static int s_show(struct seq_file *m, void *p) if (is_vmalloc_addr(v->pages)) seq_puts(m, " vpages"); - if (v->flags & VM_LOWMEM) - seq_puts(m, " lowmem"); - show_numa_info(m, v); seq_putc(m, '\n'); return 0; |