Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp875116pxb; Wed, 1 Sep 2021 11:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+qvzQLI7Nd1DDR9EuvVUsVLGFiZge3z55mmRU34NrXysHcrtZyYI1U8O9yuln5vXexNTw X-Received: by 2002:a5d:824e:: with SMTP id n14mr852224ioo.134.1630522295753; Wed, 01 Sep 2021 11:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522295; cv=none; d=google.com; s=arc-20160816; b=ygR9oofF5DT3Qibv+W6IaeqdQXR62bGjVO4axnm/aiPGQnfDTeiqYLWbfIiagZ8Jl/ O22x8D11VLp1Kay2fRtHSolBzSkYUGtoEhFrptBAxrCxPfCpO2dNJsq4oxpR9fdGDX0Q ivn2aSQkw8Xh6qe2J4O54b4Qrmry1ZBbEsh1kODf1BGq4Jwwpt4KF6L9nhrjOkTz3Kxy gho0oSmadsWHvSMNJTwAZsWlMgv5GFKvh7aVipP7R9W7FmBnORv6NtkHxCe3DUCHjCPd T+IAmvlpowN2y+a9TFDH+NZPoiw1aigZuYkgz4mRjmRC6sIGzQ3pgcCrD5mCulRtkYsz fPAg== 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=rdLWPNlr2o2VGQKs6yMiulbcewjUkJEpjEDyxs856Jo=; b=Fme+ksDSE+OY4Q8sOXPxcACNl2wyak4xkY3EAxKnsTUnD8Hdst9juZZmjqICd3PWuH iC28d97SRe2Gyyx29oBN0uadL5qLOLDQ2OkMHYloIneyIy16Mz9IjBJyGuXeETA7UCTs pQnV9mg8OYEtmMv17OGdiIP3bDp5rxsW57OPngFYKCfNOGBvP6y4FCsvNc0FFYh96huH hbp+tpxgVQCqzDOPB7mgvR3D1Aj5O1H5AHCJqaupmkusVhgZDtMOtDl7eH5CbKpjBO6W jdOD0+lS8npu5G9K7cCsHhx5v4lx5zZ6aYIMsNFmCWldnvGXS1qn7OlcQInX9C1rzBHN CeEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=HQh5dd3N; 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 l5si252343jaj.63.2021.09.01.11.51.24; Wed, 01 Sep 2021 11:51:35 -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=HQh5dd3N; 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 S234997AbhIAK23 (ORCPT + 99 others); Wed, 1 Sep 2021 06:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234905AbhIAK23 (ORCPT ); Wed, 1 Sep 2021 06:28:29 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B38FDC061760 for ; Wed, 1 Sep 2021 03:27:32 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id w7so2251212pgk.13 for ; Wed, 01 Sep 2021 03:27:32 -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=rdLWPNlr2o2VGQKs6yMiulbcewjUkJEpjEDyxs856Jo=; b=HQh5dd3NEOPvmgmvw5Hm2HI//JYez9GvSeWCvLHE/l7cDlybq6m5QB/DQw2oFnbUyX 6lqNLpQ7aR/qL9dBjLIPOvIQwlCE2UuJGeK1E6qBpZyGk7N0i4Nnvzg2aAAtEV6Y+0mi RhEQkI2zxhc/clSNpvArSD/j/fqeSH6Zz6uThMdrOdyV8vWmGjT7wioKUr02+NeDOyad dDw4gKSKZFnmmeZ+Sdx8alU22hPKmQJbhBzyreDjkQ3XREdtwb08Xld6QaL49vOyH+JI zMtp3UOu7lCzZreZaPiCdMz6P3BlzfYjs59ljp1Rad46Jrkc/ytjyoTa8O71uRlhAKgP Vevw== 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=rdLWPNlr2o2VGQKs6yMiulbcewjUkJEpjEDyxs856Jo=; b=hql9ROW51gQCQK0SQdc0hsH8908GVkUPrrzwj0yfIJrezVgTD7oaJMlgu7ksIsGaha j8d0BydkWBwox5qjG7NjQebVnFEVV79ouEpm5iBmjXL+D/zkYTgzlDtS+7FVqh3GAnLh kLkiPYQx+6oUIOh9etszXKdnLkdMjUczAFgGyB6F4SOp9xdjE5za6f//16wU0R7hxruE 3OHA3KLvR/bxojqrn3+jQlDiMLN4WsSbmnb5gb7c5ezJPVPKA0X6qM5Cf9ia4krCvytS PH8TL1m3AFGTlDVr4W5Oix5POVWl7kzmC+NYdGVqgMel6FeiVZxQSrOYVFMA458O62fC iKOA== X-Gm-Message-State: AOAM530pQsAzUQwr8dzQvh3N/hpQJTzIaKqaUMWzC8ef67ie9lmnig0a 2BB/jy2hGSTMhrUuN2U4IeMw5A== X-Received: by 2002:a63:515f:: with SMTP id r31mr31104283pgl.41.1630492052286; Wed, 01 Sep 2021 03:27:32 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.254]) by smtp.gmail.com with ESMTPSA id i10sm5291497pfk.87.2021.09.01.03.27.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Sep 2021 03:27:31 -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 v3 0/2] Do some code cleanups related to mm Date: Wed, 1 Sep 2021 18:27:20 +0800 Message-Id: <20210901102722.47686-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 v2 -> v3: - Move the declaration of pmd_install() to mm/internal.h Changelog in v1 -> v2: - Fix some typo and code style problems. Qi Zheng (2): mm: introduce pmd_install() helper mm: remove redundant smp_wmb() mm/filemap.c | 11 ++----- mm/internal.h | 1 + mm/memory.c | 86 ++++++++++++++++++++++++----------------------------- mm/sparse-vmemmap.c | 2 +- 4 files changed, 43 insertions(+), 57 deletions(-) -- 2.11.0