uprobes: Move alloc_page() from xol_add_vma() to xol_alloc_area()
authorOleg Nesterov <oleg@redhat.com>
Sun, 30 Dec 2012 16:40:39 +0000 (17:40 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:11 +0000 (17:47 +0100)
commitc8a82538001e1a68f4a319d5a75de90d1f284731
tree8f6ad569a44b3fb9179442fd6b9d07d42ec28229
parent74e59dfc6b19e3472a7c16ad57bc831e6e647895
uprobes: Move alloc_page() from xol_add_vma() to xol_alloc_area()

Move alloc_page() from xol_add_vma() to xol_alloc_area() to cleanup
the code. This separates the memory allocations and consolidates the
-EALREADY cleanups and the error handling.

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