mm/vmalloc: make sure to dump unpurged areas in /proc/vmallocinfo
Subsystems (2)
PATCH 1/1 mm/vmalloc: make sure to dump unpurged areas in /proc/vmallocinfo
From: Eric Dumazet <[email protected]>
If last va found in vmap_area_list does not have a vm pointer, vmallocinfo.s_show() returns 0, and show_purge_info() is not called as it should.
Fixes dd3b8353bae7 ("mm/vmalloc: do not keep unpurged areas in the busy tree")
Signed-off-by Eric Dumazet <[email protected]>
Cc Uladzislau Rezki (Sony) <[email protected]>
Cc Pengfei Li <[email protected]>
--- mm/vmalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/vmalloc.c +2 -1
@@ -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);
Signature · 1 line
2.33.0.800.g4c38ced690-goog