The patch titled Subject: mm/compaction: move compaction_suitable's comment to right place has been added to the -mm tree. Its filename is mm-compaction-move-compaction_suitables-comment-to-right-place.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-compaction-move-compaction_suitables-comment-to-right-place.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-compaction-move-compaction_suitables-comment-to-right-place.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Hui Su <sh_def@xxxxxxx> Subject: mm/compaction: move compaction_suitable's comment to right place Since commit 837d026d560c ("mm/compaction: more trace to understand when/why compaction start/finish"), the comment place is not suitable. So move compaction_suitable's comment to right place. Link: https://lkml.kernel.org/r/20201116144121.GA385717@rlk Signed-off-by: Hui Su <sh_def@xxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/mm/compaction.c~mm-compaction-move-compaction_suitables-comment-to-right-place +++ a/mm/compaction.c @@ -2070,13 +2070,6 @@ static enum compact_result compact_finis return ret; } -/* - * compaction_suitable: Is this suitable to run compaction on this zone now? - * Returns - * COMPACT_SKIPPED - If there are too few free pages for compaction - * COMPACT_SUCCESS - If the allocation would succeed without compaction - * COMPACT_CONTINUE - If compaction should run now - */ static enum compact_result __compaction_suitable(struct zone *zone, int order, unsigned int alloc_flags, int highest_zoneidx, @@ -2120,6 +2113,13 @@ static enum compact_result __compaction_ return COMPACT_CONTINUE; } +/* + * compaction_suitable: Is this suitable to run compaction on this zone now? + * Returns + * COMPACT_SKIPPED - If there are too few free pages for compaction + * COMPACT_SUCCESS - If the allocation would succeed without compaction + * COMPACT_CONTINUE - If compaction should run now + */ enum compact_result compaction_suitable(struct zone *zone, int order, unsigned int alloc_flags, int highest_zoneidx) _ Patches currently in -mm which might be from sh_def@xxxxxxx are mmslab_common-use-list_for_each_entry-in-dump_unreclaimable_slab.patch mm-page_counter-use-page_counter_read-in-page_counter_set_max.patch mm-hugetlbc-just-use-put_page_testzero-instead-of-page_count.patch mm-compaction-move-compaction_suitables-comment-to-right-place.patch mm-oom_kill-change-comment-and-rename-is_dump_unreclaim_slabs.patch acctc-use-elif-instead-of-end-and-elif.patch mm-memcontrol-rewrite-mem_cgroup_page_lruvec.patch