Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4483932pxb; Tue, 31 Aug 2021 06:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzONmhR9CLq5ThKMM6A3rZgT2Q6Do+0KX02hvkUMPYT+SKrMyBSWwTqHZHn1gmG7UL7IHHh X-Received: by 2002:a92:d6c7:: with SMTP id z7mr8514965ilp.4.1630416240703; Tue, 31 Aug 2021 06:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630416240; cv=none; d=google.com; s=arc-20160816; b=ya8clMuXKXzWNkKYvuhEbxn33HRnTPVkdQlXCEg94hxVqNs/4DYjoBxX0Tr/Cm8Ygb HA5Fihs1oFviiE/sWK8pocCKuskDgFLeHHmI08P/XyphIRrdFHYuEbzMhhnR1QFbGbPH 2N5H3dVUBqM/Ejnvw/4B1iF2Qap0hY+bXGcjX4fxnYwCide4EBQso+r2b+Lo21JWwHuL tShJuE1SFN7SxbsGxdmnYv8qjbH08YBLqrDWgutRR71SVgsZITJc1j8v+B6IipdEiU/A D8Eb1U4XE2Jzoilfpau4pKRptp9ChQTECUOSRJNE2PreYlR4LG7wL+XVra7a5nbaYVlG 0lPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GsWUUlqRM6xaooAMH6/u0lnxKvf1pa5+XIEe1KTGSvU=; b=enKEsFAibARCBe06Ke9moQXHyX+jWI0uGPJP+dT9Jl2X/MyljT4kbW+IuczHeGSyfr j2d9cu55cUT7JYATViJsrPgblTKxtaKsol4xmZVP9ayNLG+yruBs0Xps7OMIoewKdeSq SkDZpxgqKKfOkk+S9bQMVwUO7TUFJq8EiU77h1TmK/w6w6yGps3BtIg3+CAlhJ+XeTc2 87K1qXkCee4DJ57eq4U0YlEDoV1spX7xM/546WDvtpWVbewnAEbUbCHidFMRJ+HSc8kh hfnyc5uCMRVCakyaC30L84/CqNUNBaiFiyHpzGHopgzuTvNOb3Cu5vkuv1+gXBzv2VHq WDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=AMSUHUxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si10709565jac.120.2021.08.31.06.23.47; Tue, 31 Aug 2021 06:24:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=AMSUHUxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235473AbhHaNWR (ORCPT + 99 others); Tue, 31 Aug 2021 09:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235523AbhHaNWQ (ORCPT ); Tue, 31 Aug 2021 09:22:16 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF109C061575 for ; Tue, 31 Aug 2021 06:21:21 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id x16so14955619pfh.2 for ; Tue, 31 Aug 2021 06:21:21 -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=GsWUUlqRM6xaooAMH6/u0lnxKvf1pa5+XIEe1KTGSvU=; b=AMSUHUxRbjxZ3rAo6TCl0ZVWkittLg32Qo+FUhDa3mJkCt4OtMM3OJnvDCXikRrmMG eFq3Sx3npB1zIrmaC0Xsmm35b8VhFmsj/KYW/B0gzVyMZ5w4RoW/HxF/VSgrCWKf4OHp vC6A8OW0Tx0C4eJd22yKT8dWPnYRjNggxMRa/Vn+fJcEYzcIgGThi6AEyp8BNprALc1c DppOPny0CjUE612X52d2Q/N/oMs5TO46yClbydS3yClR6obi1+UHCxPEcX63XXVIM+ej ENxSNCTkSZtTObSWIQhKtmuMIyr+4BuX7lmQf63KHN/EZiUOk3dfDClj89v9zbXAVrZC juIQ== 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=GsWUUlqRM6xaooAMH6/u0lnxKvf1pa5+XIEe1KTGSvU=; b=p5918aztg4aZi0JFOkBws1ToJLEt/g/58kAwt1IX5TlbnklYs3M7Z8NZvWMX1l+LRa 4bt0AWmUdkMdtl+fbqrR8UiHwhNhklwYpahDcfZxJ3atYOcXo6R89XGO9PhL4Evh+a6F CbId0zx+17Jh4jypC45c69bkK4Jk55UcDw4VhtMnUuLwjpGR/q/yn6CIEDQLtWPPgsNE 0IATu1/W/Mnkq9atjDjVIBrF1wihNfjUAjEOtWO52Zj+BxVgIdjr1GGgokZTwAXQ11UB 6KC64Y6Q1VV7tDbl4UAdzkPyAjtcZ9EjZ+2Cn1aeRnGdS4haeLqWvFZnVc++GXt/G2Qo hQXQ== X-Gm-Message-State: AOAM533EnHj9w+x9XO2VqDV806PLOSWsRhRw0EOOXkP6Z4osFxhYpxq3 358HdlXlOGyZUtUGhl6ZpJ3HKA== X-Received: by 2002:a63:185b:: with SMTP id 27mr27151622pgy.0.1630416081265; Tue, 31 Aug 2021 06:21:21 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.230]) by smtp.gmail.com with ESMTPSA id k190sm9548352pgc.11.2021.08.31.06.21.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Aug 2021 06:21:20 -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, vbabka@suse.cz Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, songmuchun@bytedance.com, Qi Zheng Subject: [PATCH v2 0/2] Do some code cleanups related to mm Date: Tue, 31 Aug 2021 21:21:09 +0800 Message-Id: <20210831132111.85437-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Changelog in v1 -> v2: - Fix some typo and code style problems. 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 | 86 ++++++++++++++++++++++++----------------------------- mm/sparse-vmemmap.c | 2 +- 4 files changed, 43 insertions(+), 57 deletions(-) -- 2.11.0