diff options
author | Davidlohr Bueso <davidlohr@hp.com> | 2014-01-21 23:49:15 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-22 00:19:44 (GMT) |
commit | 363ee17f0f405faff74d9aaf93d21d5f41d5102d (patch) | |
tree | 4ff07b1b36a024b455467ac78e07fec6f18a6780 /mm/rmap.c | |
parent | 49f0ce5f92321cdcf741e35f385669a421013cb7 (diff) | |
download | linux-363ee17f0f405faff74d9aaf93d21d5f41d5102d.tar.xz |
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/rmap.c')
0 files changed, 0 insertions, 0 deletions