From patchwork Thu Jan 12 08:29:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13097564 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 A8A6EC61DB3 for ; Thu, 12 Jan 2023 08:17:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0DA658E0008; Thu, 12 Jan 2023 03:17:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F08628E0007; Thu, 12 Jan 2023 03:17:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D31898E0008; Thu, 12 Jan 2023 03:17:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B27198E0007 for ; Thu, 12 Jan 2023 03:17:42 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 879EDAAD40 for ; Thu, 12 Jan 2023 08:17:42 +0000 (UTC) X-FDA: 80345443164.29.22156CB Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf09.hostedemail.com (Postfix) with ESMTP id 6051C14000A for ; Thu, 12 Jan 2023 08:17:39 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1673511461; 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=IXcS9kvl9ie6Ugd8D255XdRV02WhPrOwMi76FUvV5Pc=; b=AG5h0TWbEPQJiIZ25gl36SM6BV+W3nqP9xclySqSm+FP50eR0Dj2SO8c842IhPPyLKRyY4 XPx+dFs8rGfsgS1qOc57QdK0jnT1n63dxHpE5QNth0rKOplu0GPbKDFFcHCuV/LY4bAPeU eIo5E6Wujjby7skiNKavs4i1cU//Xdc= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673511461; a=rsa-sha256; cv=none; b=oh+0Omag0otJhQaPhaxLqAS72TmmerY8l5DSdIedM5Fs86lOn91nGzj8F22iwWAIo5tatw 0LZ+lougQ8pTNydSM5KkhQVyfwGQTBQmSH8t7rYFd/BB7vq4i2XKrDwLuXed8MtNpwBZtz ji4TeAEuo7VLZCZMVw8n5fh9TUtMVPE= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Nsy711HjGzJrR7; Thu, 12 Jan 2023 16:16:13 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 12 Jan 2023 16:17:31 +0800 From: Kefeng Wang To: , , CC: , Kefeng Wang Subject: [PATCH -next 0/7] mm: remove cgroup_throttle_swaprate() completely Date: Thu, 12 Jan 2023 16:29:59 +0800 Message-ID: <20230112083006.163393-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 6051C14000A X-Stat-Signature: 19k3bod5e397dfgrb3wronkwgk7b5p7n X-Rspam-User: X-HE-Tag: 1673511459-611551 X-HE-Meta: U2FsdGVkX188vyJ4WyAQC5ju8I8RCQy1zMsFUJQUbyY4eu9WmI8SrV5y7r9Vd5WXY1gw2p8nqos6qvkxLR2oUXZJVRJ0OxrhWMljopR0R7/5a3xyo3bCIDl8wP+rSfEA0ht5J+ocjQcd3yKEKDQOtToP99sNibCkWobDa6zRbCnvd9cOgrvqd0B2Vx92H6wKN2Yjc+IrnoqN7IO5xQ5ugOF2tfH9UVb3uograQ+soyMICYdHi98hyMS9emXucTn32foLHXJBdxMCUyh3t3UwI18Cv5XrBTtKGlCCzq8ERL5SsjlsB0pd3rta3TbTcbCWFaunfEFyV7w/1GExCIVHesRI+tXmDNdvWP1ZSopdRSXF1EtTSc8bX4YhMbF34juTM9C0MdJBadB9n7qpKclMDlDIgdCv8Hi7wDYcpwJLF7iGsowHzfNcyPwjzqxUojI6rjrGrbM1qFfGugGXH5IXkxxHwTMb5qk7o1Ni+YAAZaXc45gQGfPdG36m4OWzYJ5Xf3QrckPEReSDiXVjLvv5jLrHYPawE0FGiQHoGxAYrrHBcWqz/BayoUrG4GEE5FXwJf4fJ+3vJiaQ93FwNLGGjTWIVpBULB8iH9soBoBLb47jAZqh9HEEPCeJnsSnhHcy/leX795/GhcYPgo3IfmtY1N4mZnfMkOdk+4wKRduJe4cdBEe9sjoBTKvWJ1eLRkHER80gIQOP2HHC6Q6GZ50alEO+AnJiPMK8PsNUIt1ElWKCKQyZr8KThgsMCzLdUdWTTV4fnlKybUsqyjhWJe/aMa0V1a577WK1ZwSn/8vUpi6rEr6sdKlkrjSaaNe36kPOHhmSBkXniZTMshvq26HNCYn2gtlN3HjPXmHrGQFjlg8TWLS3xCOYvl679vnt6LypfA3jpD3pOHH8igQSJkezyjJ9wvT48qt X-Bogosity: Ham, tests=bogofilter, spamicity=0.000221, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Convert all the caller functions of cgroup_throttle_swaprate() to use folios, and use folio_throttle_swaprate(), which allows us to remove cgroup_throttle_swaprate() completely. Kefeng Wang (7): mm: huge_memory: make __do_huge_pmd_anonymous_page() to take a folio mm: memory: convert do_anonymous_page() to use a folio mm: memory: convert do_cow_fault to use folios mm: memory: convert page_copy_prealloc() to use a folio mm: memory: convert wp_page_copy() to use folios mm: memory: use folio_throttle_swaprate() in do_swap_page() mm: swap: remove unneeded cgroup_throttle_swaprate() include/linux/swap.h | 12 ++--- mm/huge_memory.c | 23 +++++----- mm/memory.c | 104 +++++++++++++++++++++++-------------------- mm/swapfile.c | 4 +- 4 files changed, 74 insertions(+), 69 deletions(-)