From: Oleg Nesterov Date: Thu, 9 Oct 2014 22:25:21 +0000 (-0700) Subject: fs/proc/task_mmu.c: unify/simplify do_maps_open() and numa_maps_open() X-Git-Tag: fixes-against-v3.18-rc2~137^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db7d0ee198d417f4144c58048fcb173d90096ea;p=pandora-kernel.git 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 Acked-by: Kirill A. Shutemov Acked-by: Cyrill Gorcunov Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed