mm/page_alloc: remove unnecessary next_page in break_down_buddy_pages
authorKemeng Shi <shikemeng@huaweicloud.com>
Wed, 27 Sep 2023 10:35:14 +0000 (18:35 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:34:15 +0000 (14:34 -0700)
commit0dfca313a009c83e2ad44b3719dc1222df6c6db5
treeebd3d7b57797ced85e48564e6bd99931fe03d8bb
parent27e0db3c21aaf1422980e64b77956e15b839306f
mm/page_alloc: remove unnecessary next_page in break_down_buddy_pages

The next_page is only used to forward page in case target is in second
half range.  Move forward page directly to remove unnecessary next_page.

Link: https://lkml.kernel.org/r/20230927103514.98281-3-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c