OSDN Git Service

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:06:06 +0000 (11:06 -0800)
commitb49767a65a6454f7d546068a785e25dbb0eabbcd
tree609b2aa8fbb525f644bf524837e3bb458c566ae1
parent401f63716ca0bca1728e55ccf2132fb3785cf5da
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