Message ID | 20211001170815.73321-1-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm/vmalloc: make sure to dump unpurged areas in /proc/vmallocinfo | expand |
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d77830ff604cab1796a96e31ad1423a790c61ca7..42219f3d12b567fc64f54cd3e2f1e3398e261a2c 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -3902,7 +3902,7 @@ static int s_show(struct seq_file *m, void *p) (void *)va->va_start, (void *)va->va_end, va->va_end - va->va_start); - return 0; + goto final; } v = va->vm; @@ -3943,6 +3943,7 @@ static int s_show(struct seq_file *m, void *p) /* * As a final step, dump "unpurged" areas. */ +final: if (list_is_last(&va->list, &vmap_area_list)) show_purge_info(m);