proc: unify mem_read() and mem_write()
authorOleg Nesterov <oleg@redhat.com>
Tue, 31 Jan 2012 16:14:54 +0000 (17:14 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Feb 2012 22:39:01 +0000 (14:39 -0800)
commit572d34b946bae070debd42db1143034d9687e13f
treeb913d612090e8ec25e92451120ef64692c802264
parent71879d3cb3dd8f2dfdefb252775c1b3ea04a3dd4
proc: unify mem_read() and mem_write()

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.

Cc: stable@kernel.org
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c