The patch titled Subject: mm/mmap.c: remove redundant local variables for may_expand_vm() has been added to the -mm tree. Its filename is mm-mmapc-remove-redundant-local-variables-for-may_expand_vm.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mmapc-remove-redundant-local-variables-for-may_expand_vm.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmapc-remove-redundant-local-variables-for-may_expand_vm.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 ------------------------------------------------------ Chen Gang <gang.chen.5i5j@xxxxxxxxx> Subject: mm/mmap.c: remove redundant local variables for may_expand_vm() Simplify may_expand_vm() Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff -puN mm/mmap.c~mm-mmapc-remove-redundant-local-variables-for-may_expand_vm mm/mmap.c --- a/mm/mmap.c~mm-mmapc-remove-redundant-local-variables-for-may_expand_vm +++ a/mm/mmap.c @@ -2988,12 +2988,7 @@ out: */ int may_expand_vm(struct mm_struct *mm, unsigned long npages) { - unsigned long cur = mm->total_vm; /* pages */ - unsigned long lim; - - lim = rlimit(RLIMIT_AS) >> PAGE_SHIFT; - - if (cur + npages > lim) + if (mm->total_vm + npages> (rlimit(RLIMIT_AS)>> PAGE_SHIFT)) return 0; return 1; } _ Patches currently in -mm which might be from gang.chen.5i5j@xxxxxxxxx are -- 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