proc: unify mem_read() and mem_write()
authorOleg Nesterov <oleg@redhat.com>
Tue, 31 Jan 2012 16:14:54 +0000 (17:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:16:53 +0000 (11:16 -0800)
commit034089b6f4e2ae0d0df38f3409cd73c386ad069a
treeba2d27c8e773ceac08e0f4b01ea480fe2a00ac39
parent3a196fbe2650a4465d49f6e84d9360eab60e3bcb
proc: unify mem_read() and mem_write()

commit 572d34b946bae070debd42db1143034d9687e13f upstream.

No functional changes, cleanup and preparation.

mem_read() and mem_write() are very similar. Move this code into the
new common helper, mem_rw(), which takes the additional "int write"
argument.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/proc/base.c