From: Davidlohr Bueso Date: Tue, 21 Jan 2014 23:49:15 +0000 (-0800) Subject: mm/mmap.c: add mlock_future_check() helper X-Git-Tag: v3.14-rc1~134^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=363ee17f0f405faff74d9aaf93d21d5f41d5102d;p=pandora-kernel.git mm/mmap.c: add mlock_future_check() helper Both do_brk and do_mmap_pgoff verify that we are 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 Reviewed-by: Michel Lespinasse Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed