uprobes: Introduce copy_to_page()
authorOleg Nesterov <oleg@redhat.com>
Sun, 24 Mar 2013 17:58:04 +0000 (18:58 +0100)
committerOleg Nesterov <oleg@redhat.com>
Thu, 4 Apr 2013 11:57:05 +0000 (13:57 +0200)
commit5669ccee21d87622f30a724b3fe0d04ec5b0afae
treeb8eda48d364795c9ccb07c9df9f29fbf9fa7199e
parent98763a1bb1515f8a8d7f1d9ae42604e19872364b
uprobes: Introduce copy_to_page()

Extract the kmap_atomic/memcpy/kunmap_atomic code from
xol_get_insn_slot() into the new simple helper, copy_to_page().
It will have more users soon.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c