summaryrefslogtreecommitdiffstats
path: root/mm/Kconfig
diff options
context:
space:
mode:
authorDavidlohr Bueso2014-01-22 00:49:15 +0100
committerLinus Torvalds2014-01-22 01:19:44 +0100
commit363ee17f0f405faff74d9aaf93d21d5f41d5102d (patch)
tree4ff07b1b36a024b455467ac78e07fec6f18a6780 /mm/Kconfig
parentmm: add overcommit_kbytes sysctl variable (diff)
downloadkernel-qcow2-linux-363ee17f0f405faff74d9aaf93d21d5f41d5102d.tar.gz
kernel-qcow2-linux-363ee17f0f405faff74d9aaf93d21d5f41d5102d.tar.xz
kernel-qcow2-linux-363ee17f0f405faff74d9aaf93d21d5f41d5102d.zip
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 <davidlohr@hp.com> Cc: Rik van Riel <riel@redhat.com> Reviewed-by: Michel Lespinasse <walken@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/Kconfig')
0 files changed, 0 insertions, 0 deletions