diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2018-08-22 06:52:56 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 19:52:44 +0200 |
commit | f1547959d9efd0be6cac2a2fd32f05dd7144dd6c (patch) | |
tree | 5c5c1282d48d53a14253afb3fe6aabbf604945e1 /fs/xfs/xfs_ioctl32.c | |
parent | mm: /proc/pid/smaps: factor out mem stats gathering (diff) | |
download | linux-f1547959d9efd0be6cac2a2fd32f05dd7144dd6c.tar.xz linux-f1547959d9efd0be6cac2a2fd32f05dd7144dd6c.zip |
mm: /proc/pid/smaps: factor out common stats printing
To prepare for handling /proc/pid/smaps_rollup differently from
/proc/pid/smaps factor out from show_smap() printing the parts of output
that are common for both variants, which is the bulk of the gathered
memory stats.
[vbabka@suse.cz: add const, per Alexey]
Link: http://lkml.kernel.org/r/b45f319f-cd04-337b-37f8-77f99786aa8a@suse.cz
Link: http://lkml.kernel.org/r/20180723111933.15443-4-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>
Diffstat (limited to 'fs/xfs/xfs_ioctl32.c')
0 files changed, 0 insertions, 0 deletions