]> git.baikalelectronics.ru Git - kernel.git/commit
mm: /proc/pid/smaps: factor out mem stats gathering
authorVlastimil Babka <vbabka@suse.cz>
Wed, 22 Aug 2018 04:52:52 +0000 (21:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:44 +0000 (10:52 -0700)
commit5d9a5dccb57c76390eb7c3b5e72eb914818278bb
tree0317d6fa3905ae005631c89ee9c893b2b784c9bf
parent5a01da6dd01294b90b2b01eff13a41fe66133cf2
mm: /proc/pid/smaps: factor out mem stats gathering

To prepare for handling /proc/pid/smaps_rollup differently from
/proc/pid/smaps factor out vma mem stats gathering from show_smap() - it
will be used by both.

Link: http://lkml.kernel.org/r/20180723111933.15443-3-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Daniel Colascione <dancol@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c