The patch titled Subject: cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix has been added to the -mm tree. Its filename is cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix fix comment layout and spelling Cc: Hui Zhu <zhuhui@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff -puN mm/page_alloc.c~cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix mm/page_alloc.c --- a/mm/page_alloc.c~cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix +++ a/mm/page_alloc.c @@ -1839,10 +1839,12 @@ static bool __zone_watermark_ok(struct z /* At the next order, this order's pages become unavailable */ free_pages -= z->free_area[o].nr_free << o; - /* If CMA's page number of this order was substructed as part - of "zone_page_state(z, NR_FREE_CMA_PAGES)", subtracting - "z->free_area[o].nr_free << o" substructed CMA's page - number of this order again. So add it back. */ + /* + * If CMA's page number of this order was substracted as part + * of "zone_page_state(z, NR_FREE_CMA_PAGES)", subtracting + * "z->free_area[o].nr_free << o" subtracted CMA's page number + * of this order again. So add it back. + */ if (IS_ENABLED(CONFIG_CMA) && free_cma) free_pages += z->free_area[o].cma_nr_free << o; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are i-need-old-gcc.patch arch-alpha-kernel-systblss-remove-debug-check.patch mm-prevent-endless-growth-of-anon_vma-hierarchy-fix.patch mm-page_allocc-__alloc_pages_nodemask-dont-alter-arg-gfp_mask.patch fanotify-dont-recalculate-a-marks-mask-if-only-the-ignored-mask-changed-checkpatch-fixes.patch fanotify-dont-set-fan_ondir-implicitly-on-a-marks-ignored-mask-checkpatch-fixes.patch input-route-kbd-leds-through-the-generic-leds-layer.patch o2dlm-fix-null-pointer-dereference-in-o2dlm_blocking_ast_wrapper.patch ocfs2-add-functions-to-add-and-remove-inode-in-orphan-dir.patch mm.patch mm-replace-remap_file_pages-syscall-with-emulation.patch cma-fix-cmas-page-number-is-substructed-twice-in-__zone_watermark_ok-fix.patch x86-add-pmd_-for-thp-fix.patch sparc-add-pmd_-for-thp-fix.patch do_shared_fault-check-that-mmap_sem-is-held.patch task_mmu-add-user-space-support-for-resetting-mm-hiwater_rss-peak-rss-fix.patch lib-bitmap-update-bitmap_onto-to-unsigned-checkpatch-fixes.patch linux-next.patch drivers-gpio-gpio-zevioc-fix-build.patch journal_add_journal_head-debug.patch journal_add_journal_head-debug-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch mutex-subsystem-synchro-test-module.patch slab-leaks3-default-y.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