Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1884132pxb; Fri, 27 Aug 2021 21:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyipzfAZ/r8Dod9VkDdVjSrbXumilYaFxeAlZEfOJ+wxBPluR7gTNFvaJY2A4pTXSbBhYN2 X-Received: by 2002:a05:6e02:154a:: with SMTP id j10mr8885322ilu.79.1630124656398; Fri, 27 Aug 2021 21:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630124656; cv=none; d=google.com; s=arc-20160816; b=yOWNX45uCkW1VLRTNgSsGWeI81ic3rZmZRPBuz4UrLUFFmuQs95laD0oVGcGb4go72 3a5DgVIpNh6OSXckBGBvFlB35M65Z9E3Ox3UERyBtXLLDW2kAa5HKmQ+VCEXIU7oeH06 xE0v0GcC7QtLEarYLt1RZxDI0Wxps/6fhXELXcRigfe4kOGGtUtRBICMJlJq0JzCwjHR FBpnnUfcYKHxjHD2AwYmectqPuNk4hnqKm3yoE9XsdSpMzu6syib/jmUMKOSZb2I24pI vJcup1Zc9pvl6s/HTJjDFEztbCoLbA1FMDhIVeCWDtm5JXckPXrS6iF7xIodPAUAJUUQ zFXw== 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=SytwcZ3slzMrwPHLF+d0jt/xfU49WkS6ECxozhc9DzA=; b=uL9L5iu5P4Meo/pfd8b3S5mwoo/VHI0aNlknw9Mf7yuGzK6J1oGv8R2llDVkvM+ftL dZVGTkYYbsdnKgT4+AS/6m/mJtmjWtmSP7NcPrhgvKOWLHza/CoP1Rm1o2ANtV8fUk51 J4Csk5nY+pVW770EGtabA8pXBBgzIGYIRZDZujj1+SqpLdRVF/lFiNl+PPNnlo+3DTG2 X1zhKta5Vd/jk3C+lC3Fz0CCTGYkA3buN+TzmQTkW98MevCotHcNELE+PVcQoL44a1Av 9S/Nexo+3LLUBiC6NPp/jNVK7u8c77wuWa//ScSmHjBxk6/mTrUhYVUam6Erqb8i/8O5 /xhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=qKO96g6K; 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 w134si4774803jab.91.2021.08.27.21.24.03; Fri, 27 Aug 2021 21:24:16 -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=qKO96g6K; 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 S229470AbhH1EYK (ORCPT + 99 others); Sat, 28 Aug 2021 00:24:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhH1EYI (ORCPT ); Sat, 28 Aug 2021 00:24:08 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E3E1C0613D9 for ; Fri, 27 Aug 2021 21:23:18 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id x16so7463099pfh.2 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=nqWqN+i6Jg2XCNSb8uOARk1WBx1hFSlXle9tLAPblp5BIjcdBV27NXWEkzGn+1Xkpb lqNbTNKSim6U6oXji/0ntKpHbh3QLzFNTBDllmlfkjO842XVr0ZY4nW2iPKZejHeGFfi +6J1XcoHJFp2BN502KDWD4/BZYZ2nlQTSngqijl5Ou83yiBeXNuMGq8etrHmkFneJyj2 eauSvMeAywFTFfJc8okXPNrYtRVSKti89oTB7AiO46FUVF9GvHjpL1HSZ3wYClAO0Nat gSCNWE8dp0oaP5bsIBiS2BlJi8BEd4HYfXcFwehduqPpInGAI15qBQBT5ykH/6tfLtJs sESA== X-Gm-Message-State: AOAM530xU8NSVINBHKEOlo9HttcrzGd85jbEhMYe+B/78J9DWj77uRm2 k+ZvjNImFoWggi3CPFz1XbXwzg== 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 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. 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(-) -- 2.11.0