Re: [PATCH 1/3] mm: add mlock_future_check helper

2013-10-23 Thread walken
On Thu, Oct 17, 2013 at 05:50:36PM -0700, Davidlohr Bueso wrote: > Both do_brk and do_mmap_pgoff verify that we actually > capable of locking future pages if the corresponding > VM_LOCKED flags are used. Encapsulate this logic into > a single mlock_future_check() helper function. > > Signed-off-by

[PATCH 1/3] mm: add mlock_future_check helper

2013-10-17 Thread Davidlohr Bueso
Both do_brk and do_mmap_pgoff verify that we actually capable of locking future pages if the corresponding VM_LOCKED flags are used. Encapsulate this logic into a single mlock_future_check() helper function. Signed-off-by: Davidlohr Bueso Cc: Rik van Riel Cc: Michel Lespinasse --- mm/mmap.c |