The patch titled Subject: mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7 has been added to the -mm tree. Its filename is mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Eric B Munson <emunson@xxxxxxxxxx> Subject: mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7 Extending the mlock system call is very difficult because it currently does not take a flags argument. A later patch in this set will extend mlock to support a middle ground between pages that are locked and faulted in immediately and unlocked pages. To pave the way for the new system call, the code needs some reorganization so that all the actual entry point handles is checking input and translating to VMA flags. Signed-off-by: Eric B Munson <emunson@xxxxxxxxxx> Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mlock.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/mlock.c~mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7 mm/mlock.c --- a/mm/mlock.c~mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7 +++ a/mm/mlock.c @@ -578,6 +578,7 @@ static int apply_vma_lock_flags(unsigned for (nstart = start ; ; ) { vm_flags_t newflags = vma->vm_flags & ~VM_LOCKED; + newflags |= flags; /* Here we know that vma->vm_start <= nstart < vma->vm_end. */ _ Patches currently in -mm which might be from emunson@xxxxxxxxxx are mm-mlock-refactor-mlock-munlock-and-munlockall-code.patch mm-mlock-refactor-mlock-munlock-and-munlockall-code-v7.patch mm-mlock-add-new-mlock-system-call.patch mm-mlock-add-new-mlock-system-call-v7.patch mm-introduce-vm_lockonfault.patch mm-introduce-vm_lockonfault-v7.patch mm-mlock-add-mlock-flags-to-enable-vm_lockonfault-usage.patch mm-mlock-add-mlock-flags-to-enable-vm_lockonfault-usage-v7.patch selftests-vm-add-tests-for-lock-on-fault.patch mips-add-entry-for-new-mlock2-syscall.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html