From patchwork Sat Aug 28 04:23:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 12463253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D37EBC432BE for ; Sat, 28 Aug 2021 04:23:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3F76F60EB3 for ; Sat, 28 Aug 2021 04:23:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3F76F60EB3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 8C0636B006C; Sat, 28 Aug 2021 00:23:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8704A8D0001; Sat, 28 Aug 2021 00:23:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 75ED26B0072; Sat, 28 Aug 2021 00:23:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 591236B006C for ; Sat, 28 Aug 2021 00:23:20 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D8BBD8249980 for ; Sat, 28 Aug 2021 04:23:19 +0000 (UTC) X-FDA: 78523194918.18.5EE3486 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by imf24.hostedemail.com (Postfix) with ESMTP id 6053EB00009E for ; Sat, 28 Aug 2021 04:23:18 +0000 (UTC) Received: by mail-pf1-f178.google.com with SMTP id 7so7420316pfl.10 for ; Fri, 27 Aug 2021 21:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SytwcZ3slzMrwPHLF+d0jt/xfU49WkS6ECxozhc9DzA=; b=qKO96g6KVvRXq4DC0co2db52l9ZujayAG0s7UsyCWHZLDdPagPt5vIqPYNNFOtrSqN 773TX2OAEYwZAEn/GEJ3FIFlXZr7xUWo0AQE8W0tykE6pRYKu+/QfDuE28PPJj2s/1yJ QZRrQ4aD0DYC75XrtqrYfqx+2UM13+UYqADyY0UaO0m6X1/Ei53Dq8kKNB724SOe/DJ8 4fpFVSZdO0H/9cgyn67ShaZrd0QPv5IIquS0xzqld1ukBpP9hFsut2JALBpvJEWWA4TQ u4DdIfLbxrYdTeNS3G4iU9Yi0dF+CuAtTGS4QgaSpBrIJQao2gNVg1DH1nDW+D4X4J18 sN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SytwcZ3slzMrwPHLF+d0jt/xfU49WkS6ECxozhc9DzA=; b=Bdxz4bwHkfKYUvhZjLzpJrwo9uSY+UuKIuLWzLJaNLADnUN4UGfFpHlZS+v/S1wq7N KfjOzZ8CQ3epqDTpOE3zCOZOkENXUB3zNn6DmP/CCs8gNT7ZJO0WDZxu2GJ50/zVw7Mr LeUUcXZeSvfy06+nO6nkjF3XDXtW/KvggA/7VUwTEBzKBkbWkd5qfEg9TUdQwlvyGjLT EqVdWVGVNSdwk1Y1oDdX4eTyUbS2Hscs4Ysc1vPZsQsSwENdAoNnu1OVHl4Rv6o/FGTN ideJnTRcd++2I65Ahxodkyi/HwmHYh/VH0mtoSFlgNgjucs72jeqx1phFYrcrV29vb/0 e72w== X-Gm-Message-State: AOAM531w9RAbAs7b7wtsxCs62QjdRxxr2Yq5gUQ7h95TarG+DP93+pOm qfETXj3LNnmvkDhBgz53zTQd0w== X-Google-Smtp-Source: ABdhPJz419LcXMpMxGynDgPvGjIkry8ZytVBB9N4+Rwa/XyNxnx8KvnePb+X6Jmc82cCdYItHAJvCA== X-Received: by 2002:aa7:989d:0:b0:3ef:5f81:5c2f with SMTP id r29-20020aa7989d000000b003ef5f815c2fmr12237034pfl.44.1630124597106; Fri, 27 Aug 2021 21:23:17 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.254]) by smtp.gmail.com with ESMTPSA id u15sm4720383pfl.14.2021.08.27.21.23.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Aug 2021 21:23:16 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, tglx@linutronix.de, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, kirill.shutemov@linux.intel.com, mika.penttila@nextfour.com, david@redhat.com Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, songmuchun@bytedance.com, Qi Zheng Subject: [PATCH v1 0/2] Do some code cleanups related to mm Date: Sat, 28 Aug 2021 12:23:04 +0800 Message-Id: <20210828042306.42886-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=qKO96g6K; spf=pass (imf24.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.178 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 6053EB00009E X-Stat-Signature: sp7cisgjjhst93p8gf818fgyzynstzsk X-HE-Tag: 1630124598-6631 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: Hi, This patch series aims to do some code cleanups related to mm. This series is based on next-20210827. Comments and suggestions are welcome. Thanks, Qi. Qi Zheng (2): mm: introduce pmd_install() helper mm: remove redundant smp_wmb() include/linux/mm.h | 1 + mm/filemap.c | 11 ++------ mm/memory.c | 81 ++++++++++++++++++++++++----------------------------- mm/sparse-vmemmap.c | 2 +- 4 files changed, 40 insertions(+), 55 deletions(-)