From patchwork Fri Nov 10 03:33: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: 13452062 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 C747BC4332F for ; Fri, 10 Nov 2023 03:34:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 41F144401C2; Thu, 9 Nov 2023 22:34:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3CF174401C0; Thu, 9 Nov 2023 22:34:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 297574401C2; Thu, 9 Nov 2023 22:34:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 19A144401C0 for ; Thu, 9 Nov 2023 22:34:12 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E76D6C035F for ; Fri, 10 Nov 2023 03:34:11 +0000 (UTC) X-FDA: 81440626302.02.9A0F49C Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf08.hostedemail.com (Postfix) with ESMTP id B499A160004 for ; Fri, 10 Nov 2023 03:34:09 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 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=1699587250; 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: references; bh=JxO0bq48Wg5XYqQKqI95gmp2bFBbTLvcITgAkmSZh/0=; b=oyPrc9dM3BvEWk21Y+UdBI144n122kNaWjO7cUIFgQr9ALG9ct4e56/3dUl6IoVWyWY8gT iDxMpbDuTC2Wn2pXxEC0QkWIezx6zKvQRhIIOYiTHWZdprTUJhOHkDBqpyqSFBLPH+1tPs E4ajFZOmAoZG3pl1F3ZOGepzIDYH+1Q= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699587250; a=rsa-sha256; cv=none; b=0uYgsk09ezMDaTGfUUGQZ++OKHltti0E+ywpzSM0Kx9V+P3wZ043f2uKl05wj7oYFG++wo m7EPkaNT85rBt9OFKNDGeOQ9OzYmgHFocS3VEFTr7k6QSdsetGQzYRyGDiaG8uFZ3HOWwa 95VPIYe0xSWqNiNJbaUB3t7Jsl3zbYg= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SRPSZ0PHHzMmkl; Fri, 10 Nov 2023 11:29:18 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) 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; Fri, 10 Nov 2023 11:33:47 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , Gregory Price , Kefeng Wang Subject: [PATCH v2 0/7] mm: remove page idle and young wrapper Date: Fri, 10 Nov 2023 11:33:17 +0800 Message-ID: <20231110033324.2455523-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] 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-Stat-Signature: goee4mwfrhuhjkj3nwaxttepwkisqhc7 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: B499A160004 X-HE-Tag: 1699587249-449011 X-HE-Meta: U2FsdGVkX19jFNbjjp1HlHRRaNg6PiqNmJyqvg33DxNnxU9sCwgaOs92UNTD63SViUBC92V2VFF/h9j9E5SPpekFUy04AfMHtfWXI9otUQtgSm3FUcquIOoVBPAGbCtfdMafj9gXa2ykPNI/AXIGLiH3sefYFx/BAfZF6b/84eXZiMiO2It8WcPeicTE71qBE7Cr/CZsOI3Gfz32jhkvJrkz7nr8ENr4bsop+QvauTfQcpONQShhmnOrQL00NVkKUb9VA0XJpaX7WEJCD6quvi8NAHzCFnP5cfiKgNZBYcL/4bS/5I7IvkIV8fxm6qcHwKWUVxS/HPb53tMnh0iWwJpoeixKEQveqlqDqeuMwl84j5D3mX+MklV3FcDhxZjrW5PuAOVzNBamnzeznr/s0bOrzUUzL2RPPAwV9OKdXZnPqpD8FUkjpOBApBGQLL7vH/ehcrhAgCvfsT50BUBMKSIT98QfrSYlslbFU1RdfAlaGzybbz+G0I+nG8+4m5Z2rKUthcQyyComFpbVl35+q+UuqojYG6AnJtxmCanzpf3ZruCzc44jQe3podWJGLUwk2D2NP4UQ+Yv4buEXCJy9x/2r5z+o04RleexpmnA0sTq+AY/GjwTj86u1UQYBCiabuJ2omyrkLpvcBwqbAFBlgIUsSRPCXxdz3549ENNuXof4mORbpRbvaZQw2rYH+j1wG2vnKho0mBqc8ZLxTFZFQJoPcsherJ3BBsjVCe0TTQR6IWQUq4w29sbbAufbvjZjE/X5PxEnVMweoS1hXPe/6DoYza850GlgHpGsRrX7nBB25BiHqS4vtCwgvz7DKAzLBqkn5oCpO57l8Gy24f1HsK0F62NPR45ZPQpLd1eT8WwFP4X42hbORgrZXamCR0WhCjjKXbSOzIVcYcy5Q6BbWEEPkpIKe1FcJ8+Wia0mYd3vT4f6Hxmx5FuP2TtYBsgagGLzBR5jiWR3wbyBfi B3WB39OE fOM4Ve/cfPjBfkO/FJiZd5oRfIhoaC/vIcDEjjwlgXH/RFov63mgNydVRL4dcdzd+ICugECo5sB0shI/IVTYYheCeOVgQf8b5OlU4u/6YMIQvYo5hDwUhT5bWCA== 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: List-Subscribe: List-Unsubscribe: Convert to use folio idle and young functions instead of page ones, then remove all page idle and young wrapper. v2: - remove useless PageTail && PageSlab check - collect Gregory Price's work, see patch3 Kefeng Wang (7): fs/proc/page: remove unneeded PageTail && PageSlab check fs/proc/page: use a folio in stable_page_flags() fs/proc/page: respect folio head-page flag placement mm: huge_memory: use more folio api in __split_huge_page_tail() mm: task_mmu: use a folio in smaps_account() mm: task_mmu: use a folio in clear_refs_pte_range() page_idle: kill page idle and young wrapper fs/proc/page.c | 41 ++++++++++++++++++--------------------- fs/proc/task_mmu.c | 28 +++++++++++++------------- include/linux/page_idle.h | 25 ------------------------ mm/huge_memory.c | 12 ++++++------ 4 files changed, 40 insertions(+), 66 deletions(-)