]> git.baikalelectronics.ru Git - kernel.git/commit
mm: /proc/pid/smaps_rollup: fix maple tree search
authorHugh Dickins <hughd@google.com>
Wed, 19 Oct 2022 03:18:38 +0000 (20:18 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 21 Oct 2022 04:27:23 +0000 (21:27 -0700)
commit787172d3cf73ba1bea8bc8cf4d599c254cb1310e
tree72275d36947628e0e1c6e207ac5353466f564d04
parent0d60488132f4f60eb0be6aac666cda776b1d28f6
mm: /proc/pid/smaps_rollup: fix maple tree search

/proc/pid/smaps_rollup showed 0 kB for everything: now find first vma.

Link: https://lkml.kernel.org/r/3011bee7-182-97a2-1083-d5f5b688e54b@google.com
Fixes: ebe07473d31e ("fs/proc/task_mmu: stop using linked list and highest_vm_end")
Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c