diff options
| author | Oleg Nesterov <[email protected]> | 2014-10-09 15:25:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-10-09 22:25:48 -0400 |
| commit | 4db7d0ee198d417f4144c58048fcb173d90096ea (patch) | |
| tree | ae5739057a1eb8d65d5b24ad7c5b8af87a548fa0 /tools/perf/scripts/python | |
| parent | 46c298cf69d0e9a27d33ff992a81bd7b441c7933 (diff) | |
fs/proc/task_mmu.c: unify/simplify do_maps_open() and numa_maps_open()
do_maps_open() and numa_maps_open() are overcomplicated, they could use
__seq_open_private(). Plus they do the same, just sizeof(*priv)
Change them to use a new simple helper, proc_maps_open(ops, psize). This
simplifies the code and allows us to do the next changes.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Cyrill Gorcunov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions