+++ /dev/null
-From 0401eece5ddbbcc2e84c3970a633e0c66ac0436f Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 14 Jan 2022 14:08:10 -0800
-Subject: mm/page_isolation: unset migratetype directly for non Buddy page
-
-From: Chen Wandun <chenwandun@huawei.com>
-
-[ Upstream commit 721fb891ad0b3956d5c168b2931e3e5e4fb7ca40 ]
-
-In unset_migratetype_isolate(), we can bypass the call to
-move_freepages_block() for non-buddy pages.
-
-It will save a few cpu cycles for some situations such as cma and
-hugetlb when allocating continue pages, in these situation function
-alloc_contig_pages will be called.
-
-alloc_contig_pages
- __alloc_contig_migrate_range
- isolate_freepages_range ==> pages has been remove from buddy
- undo_isolate_page_range
- unset_migratetype_isolate ==> can directly set migratetype
-
-[osalvador@suse.de: changelog tweak]
-
-Link: https://lkml.kernel.org/r/20211229033649.2760586-1-chenwandun@huawei.com
-Fixes: 3c605096d315 ("mm/page_alloc: restrict max order of merging on isolated pageblock")
-Signed-off-by: Chen Wandun <chenwandun@huawei.com>
-Reviewed-by: Oscar Salvador <osalvador@suse.de>
-Cc: Vlastimil Babka <vbabka@suse.cz>
-Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
-Cc: Wang Kefeng <wangkefeng.wang@huawei.com>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- mm/page_isolation.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/mm/page_isolation.c b/mm/page_isolation.c
-index f67c4c70f17f6..6a0ddda6b3c53 100644
---- a/mm/page_isolation.c
-+++ b/mm/page_isolation.c
-@@ -115,7 +115,7 @@ static void unset_migratetype_isolate(struct page *page, unsigned migratetype)
- * onlining - just onlined memory won't immediately be considered for
- * allocation.
- */
-- if (!isolated_page) {
-+ if (!isolated_page && PageBuddy(page)) {
- nr_pages = move_freepages_block(zone, page, migratetype, NULL);
- __mod_zone_freepage_state(zone, nr_pages, migratetype);
- }
---
-2.34.1
-
mm-defer-kmemleak-object-creation-of-module_alloc.patch
kasan-fix-quarantine-conflicting-with-init_on_free.patch
selftests-vm-make-charge_reserved_hugetlb.sh-work-wi.patch
-mm-page_isolation-unset-migratetype-directly-for-non.patch
hugetlbfs-fix-off-by-one-error-in-hugetlb_vmdelete_l.patch
rpmsg-core-clean-up-resources-on-announce_create-failure.patch
ifcvf-vdpa-fix-misuse-virtio-net-device-config-size-for-blk-dev.patch