]> www.infradead.org Git - users/jedix/linux-maple.git/commit
proc: unify mem_read() and mem_write()
authorOleg Nesterov <oleg@redhat.com>
Tue, 31 Jan 2012 16:14:54 +0000 (17:14 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 6 Mar 2012 21:49:49 +0000 (13:49 -0800)
commit6179eeb65c791c71ed29fff94785c4289caa9fad
treeabd7fe881fe73da36702696ce278a9229dd15a91
parente7b4293a85b018932e10e8b886980f62c4961a53
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>
(cherry picked from commit b49767a65a6454f7d546068a785e25dbb0eabbcd)
For Oracle bug 13811116

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
fs/proc/base.c