From: zhong jiang Date: Thu, 28 Jul 2016 22:45:07 +0000 (-0700) Subject: mm: update the comment in __isolate_free_page X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=400bc7fd4fa7d33c96d836e6b65eeed246f1959a;p=openwrt%2Fstaging%2Fblogic.git mm: update the comment in __isolate_free_page We need to assure the comment is consistent with the code. [akpm@linux-foundation.org: coding-style fixes] Link: http://lkml.kernel.org/r/1466171914-21027-1-git-send-email-zhongjiang@huawei.com Signed-off-by: zhong jiang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 452513bf02ce..b6d38b1c1cdb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2517,7 +2517,10 @@ int __isolate_free_page(struct page *page, unsigned int order) zone->free_area[order].nr_free--; rmv_page_order(page); - /* Set the pageblock if the isolated page is at least a pageblock */ + /* + * Set the pageblock if the isolated page is at least half of a + * pageblock + */ if (order >= pageblock_order - 1) { struct page *endpage = page + (1 << order) - 1; for (; page < endpage; page += pageblock_nr_pages) {