On 04.04.22 23:50, Andrew Morton wrote: > > The patch titled > Subject: mm: page_alloc: simplify pageblock migratetype check in __free_one_page() > has been added to the -mm tree. Its filename is > mm-page_alloc-simplify-pageblock-migratetype-check-in-__free_one_page.patch > > This patch should soon appear at > https://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-simplify-pageblock-migratetype-check-in-__free_one_page.patch > and later at > https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-simplify-pageblock-migratetype-check-in-__free_one_page.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: Zi Yan <ziy@xxxxxxxxxx> > Subject: mm: page_alloc: simplify pageblock migratetype check in __free_one_page() > > Move pageblock migratetype check code in the while loop to simplify the > logic. It also saves redundant buddy page checking code. > Again, sorry for having to reply here. Looks like a really nice cleanup to me! Acked-by: David Hildenbrand <david@xxxxxxxxxx> > Link: https://lkml.kernel.org/r/20220401230804.1658207-1-zi.yan@xxxxxxxx > Link: https://lore.kernel.org/linux-mm/27ff69f9-60c5-9e59-feb2-295250077551@xxxxxxx/ > Signed-off-by: Zi Yan <ziy@xxxxxxxxxx> > Suggested-by: Vlastimil Babka <vbabka@xxxxxxx> > Acked-by: Vlastimil Babka <vbabka@xxxxxxx> > Cc: David Hildenbrand <david@xxxxxxxxxx> > Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> > Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> > Cc: Mike Rapoport <rppt@xxxxxxxxxx> > Cc: Oscar Salvador <osalvador@xxxxxxx> > Cc: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > --- -- Thanks, David / dhildenb