From patchwork Mon Aug 21 11:56:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13359340 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 395B4EE4996 for ; Mon, 21 Aug 2023 11:45:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 979128D000B; Mon, 21 Aug 2023 07:45:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 928D08D0002; Mon, 21 Aug 2023 07:45:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7F0108D000B; Mon, 21 Aug 2023 07:45:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6D1D68D0002 for ; Mon, 21 Aug 2023 07:45:41 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 39DB11A0B5B for ; Mon, 21 Aug 2023 11:45:41 +0000 (UTC) X-FDA: 81147932082.17.801F7A7 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf21.hostedemail.com (Postfix) with ESMTP id 28C611C0023 for ; Mon, 21 Aug 2023 11:45:37 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692618339; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YFn9sPOOtQsACHVP40lHzVSkZGNDT8Y67dEErfZg9ZU=; b=y7m23sTBSS/gsswlTU32DbKn/yIWNL4KxnHtFcMOO/K2CKJe8jOXLEF+cL0sFxkW6iKS/4 WscTddVV/IQwOp/PpDaKtKRsZu5ZNL7aFAHXrDWdvltGa5aeQXPZ8e7nxig02ElKo5wcF5 jsP+lFnjyAMjwygB5RMEymjD41IYpM0= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692618339; a=rsa-sha256; cv=none; b=gM0kGHh3uxueQtpxWJ78Et+BJ3H2QaA5Ml2mrBwBoxQA7MfWdhi7ijf0j7qIKtCyUjv3Tu L53AKou2ABBheW2ojXqwYyNli69FLfSfi5EELg55Bh8QnNH0oawRWFgzwa59XgJW5Qou79 grWkqnXsnnCQ57i1kiHZMYoT9YaXRys= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RTrDH3LQcztSfY; Mon, 21 Aug 2023 19:41:51 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 21 Aug 2023 19:45:33 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Mike Kravetz , , Kefeng Wang Subject: [PATCH v2 1/8] mm: migrate: remove PageTransHuge check in numamigrate_isolate_page() Date: Mon, 21 Aug 2023 19:56:17 +0800 Message-ID: <20230821115624.158759-2-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821115624.158759-1-wangkefeng.wang@huawei.com> References: <20230821115624.158759-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 28C611C0023 X-Stat-Signature: kj7dr16b5bq3au5ikzea7mjyy3dardye X-HE-Tag: 1692618337-187707 X-HE-Meta: U2FsdGVkX18QJUs8ptWxKi2QRmzPY0IW1/edjFfyX5/bBtdzsBhG2WJkLRG5uotcqm7tWh5vk/Wo+eKOGadu2YIqut+RvCoL0N+e5tfYOe6PMFaM7mVffJc+3AAsxo4fWYVtAfaDkHnZtqTnOxtoBbPF2VeNFMS7wdcWOO8b5vbk1rKTNdVANmq5uvh7K/h+0Lan3ui0IvayjOB1qe2+MkuTIz9pBbCH0GhsY9PuG0Dc6IG8vK5v6b7jmAjKnEqi9LO4bNbODE7qeO6TDHjUK5lVbwcMbCYf0IVdBx3SAHf6uOGnPNtHReMDN3ytIR1AnRzbFomtR8bmnRJlKbtpx+2/wYGTPqXNDheAPVF4FZQV/vfxRGWThMeaj8uiTsaLmGVoNa4eIY1YSsRFZSHVBu3aj9NsRG6y+Jfta8PGX8yZBKQmwgjA+NZi3GhLo4S6d1LNNtfVLAbhi1DAZ83fJD+6VhwVIKmf+XaYENUPPShwyvqzNDXHlT1xHBeiY2uyQy1ijMGqUJ8q0Yaer0cASvuKwgG2tmlpXJdHSxO6xT509iDXJ7hWmdZ0NaleBFenw+vhKN5FDRzX5ioSgx9N8ll0F4fyWIvw+Cxd0YgdhxzVuXs4k0X6vj36MeHJOocohiHh/lnfy1Fuqv6qqZw2XmoNI2K1JJYpxim5H4G/bZqev5KAIptqY42wV3PyyKjT3HGXri7WUlv4o+8rOkLz2wvgPCw4wQi3zIB8oLZLvMGshWtitTUkkF+p/MsLpTPrxE27VjY2vCt9v+kgpZNj5gHwD93/ro+Q1avlWysDi+RtP4ZpTtd5Sc2Ql/8BeMeNVWFWb+3+R90gDOxSiQFUyO0J40Q+Ovl2adkIYG95LP4WpV1eCvRU8PYF86LRHqFAtBY0TKbvjLoC9wDr6JWA8FgPMqJ5lBBUe71KMkVl91KLbarD8s9wiGhr4bJ+NSCXjncsrJXTnYaMJOI1ZVU DbMYQwli 3rnyO5PZCoIcCz1CiTYBuWTtaSwQNftRsDx0NR9BCmluWbywS1X0EwJa0JQSstDSeXflaHIZLwkEd9v731NNl/CsdV8bBkwZ52BQm68cOCW+KBXkcARXKK9GZUkr1AfnWfsQRPPb+WmEZLV3wddXbG31yIx4sErELHL0GqaKEUBjdMjB1KYw3FY40I5+5lofcZz8xp07XNF9wYnuuH36G8hJaQzi+bij61Ww7lzIKMWXxaQc63meBcRIjj+JNrOeSTgFz X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Since we begin to convert the numa migration code to use folio, which could let us to handle arbitrary sizes of folio, so drop assert that we only support PageTransHuge page(PMD size) when order > 0. Suggested-by: Matthew Wilcox (Oracle) Signed-off-by: Kefeng Wang --- mm/migrate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index b7fa020003f3..646d8ee7f102 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -2483,8 +2483,6 @@ static int numamigrate_isolate_page(pg_data_t *pgdat, struct page *page) int nr_pages = thp_nr_pages(page); int order = compound_order(page); - VM_BUG_ON_PAGE(order && !PageTransHuge(page), page); - /* Do not migrate THP mapped by multiple processes */ if (PageTransHuge(page) && total_mapcount(page) > 1) return 0;