Skip to content

Commit 08ac855

Browse files
Hugh Dickinsakpm00
authored andcommitted
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: c4c84f0 ("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>
1 parent 12df140 commit 08ac855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/proc/task_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ static int show_smaps_rollup(struct seq_file *m, void *v)
902902
goto out_put_mm;
903903

904904
hold_task_mempolicy(priv);
905-
vma = mas_find(&mas, 0);
905+
vma = mas_find(&mas, ULONG_MAX);
906906

907907
if (unlikely(!vma))
908908
goto empty_set;

0 commit comments

Comments
 (0)