diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2014-10-09 15:25:21 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-28 15:15:06 +0200 |
| commit | db6157b5b50648dd20164d196d09184133d83612 (patch) | |
| tree | bddb136709c40c5faf7cc4288d66c5e546b5bd79 /kernel/timer.c | |
| parent | 06bbac3c7a384598165fa5fb79f9f20bcbebdc28 (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 <oleg@redhat.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: W4TCH0UT <ateekujjawal@gmail.com>
Diffstat (limited to 'kernel/timer.c')
0 files changed, 0 insertions, 0 deletions
