mm: factor out main logic of access_process_vm
authorStephen Wilson <wilsons@start.ca>
Sun, 13 Mar 2011 19:49:19 +0000 (15:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Mar 2011 20:36:56 +0000 (16:36 -0400)
commit206cb636576b969e9b471cdedeaea7752e6acb33
tree252a1b5e9ce41521fb93b519265d4a1dbd18cfe9
parente7f22e207bacdba5b73f2893a3abe935a5373e2e
mm: factor out main logic of access_process_vm

Introduce an internal helper __access_remote_vm and base access_process_vm on
top of it.  This new method may be called with a NULL task_struct if page fault
accounting is not desired.  This code will be shared with a new address space
accessor that is independent of task_struct.

Signed-off-by: Stephen Wilson <wilsons@start.ca>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/memory.c