Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2073569ybe; Sat, 14 Sep 2019 07:24:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXtQObi7tyRyaeRlzkDEJtWYzabiigTBwWBBZNgXfMV7rZnuGmwBBp4O/a04sTA7o9dDtz X-Received: by 2002:a17:906:f189:: with SMTP id gs9mr45433666ejb.274.1568471048847; Sat, 14 Sep 2019 07:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568471048; cv=none; d=google.com; s=arc-20160816; b=b2JJxUU7vur917NslwqtTSXx6PhHIrFXbvDuIeQDfsHdFl/LZNfgyV47FcVxwAcELp UlDir3AHAaT/SyuT/AfQ6AdOO2cDWd9FhHL1aodn7m+dO0WcS9U0fNTis5UmsGXeW3za hs2w8Gkeeu5oP6Z9CNPK+wf31H85dlRxD+wtIMT0iJLlscMEiXzVUdyl8zN62mF3h0W/ nomNMuoh3WpriaXmfF4nVNdEzmJsMvzQjQZx9IEaDZ1sB4Z+W2mnOk+iX0jcohMttqqm et9wAvpLC7DGMs10r45iP+G+ZXlA1DQ75AkNn3aQ2hTSdQMkcGERb0vKF6SraNAHels/ eMEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=t8cGpHubjB6DkvBW1Qn9d5gYfqgedzw/xNrPjvFY/Nw=; b=WIIPqUZgEHLf2ruUW2knL3V4cZTcDKVbFb8+F2PLdGSNMIlH0Ju/4eehNaohytKSSo am4BjVUrU2lbwqqpIMbdhacDNMg8/os4KaOyGuVmKq7sjzKnSkWAUErVNHPZ55zpJtVk 8JCElYAgViJMq53P+hbpk4MZSaj982vT7wdGQ+RQDpoq09hD44oWDK05P8Y/t2Tyf+CZ ZHX85xVqpiAxsvdjXl5oId+UcOsGSp1ys0Y5/l1UydEjWEVovtOWmfZDK8/qFjStIILV nvXmkIWfe1QD3yZ6P/c2Iv8UZ5c1WGZ2MaU46o36S4RNFtXuFH6VAnocdNckEsPKdiQf MWIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gbAiEctD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z54si19749717edd.337.2019.09.14.07.23.45; Sat, 14 Sep 2019 07:24:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gbAiEctD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390753AbfINAD3 (ORCPT + 99 others); Fri, 13 Sep 2019 20:03:29 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46520 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387762AbfINAD2 (ORCPT ); Fri, 13 Sep 2019 20:03:28 -0400 Received: by mail-ed1-f68.google.com with SMTP id i8so28368521edn.13 for ; Fri, 13 Sep 2019 17:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t8cGpHubjB6DkvBW1Qn9d5gYfqgedzw/xNrPjvFY/Nw=; b=gbAiEctD/TNFuOmjaeF2iGU//aIQDkU6BSjDfxc02v/fm2ehA5B8CbS4asenQun9RX /ozWunb+vjjtTL1srFBAGUp+m5abZ0wT/iuSAXN9NnQIcw0TqNChAepSHoTF7wkF1Aae YiaB37IvY9Js8F2ISO9pT052SCwmIQKuoOR7gma3wtCuLjNHgLv9D7YMF/7WwkE7L5lb 8qtJGbdBQ4vTzmZkkri9qvHZsIJgUBzv1GWZtQ2VuM5Z29S3XBSI1loZysTzjxxoQoT0 dQw72nFnOFggxX0BGaQHtk9LnFtcTGh0nup+eaDMWiac4rks5dZ6M3CXExkgKMYyaJq9 ZRqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=t8cGpHubjB6DkvBW1Qn9d5gYfqgedzw/xNrPjvFY/Nw=; b=mMURMEUMxZsXopOUkH9afhduNVr6Qt7hnce4CrzMm5+pQy9TLdEkl0x2/Ci9e+AVZ1 wEhRiX0FAtJmRYLi0VlJcI7XOw0RNAtRxIi7STYPz+y25BZDw88MCkzQacYGoqCMC2wv JOhgX9JkpktDTlsnHR1Cgd7Vb2ptO9KcvDaro0KGkaQE8TrK1X3XLexvUS6buAyR4gB1 wzTfBsIAbDlgFO5BsnqJQMLbDABglz4kmLhlt7vg3zWT1qB5708vH+fwJHTHEcqakh0x 96dBPHzuHoG6j9fRbBHYiWixodtHN1xzlb28bEX8Q1mvmJc8oKDipN/G1FCCta9NNi7J hfxg== X-Gm-Message-State: APjAAAXCywq/EeLpVjYgNpWZYK1oKu2T+oqdey4XTXE6++sjuzsGfjd0 LM7dUFvA5pyyuMrzvZtokoc= X-Received: by 2002:a17:906:235a:: with SMTP id m26mr42419198eja.297.1568419407776; Fri, 13 Sep 2019 17:03:27 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id q10sm5563765edw.26.2019.09.13.17.03.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Sep 2019 17:03:27 -0700 (PDT) Date: Sat, 14 Sep 2019 00:03:26 +0000 From: Wei Yang To: Wei Yang Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, willy@infradead.org, will@kernel.org, peterz@infradead.org Subject: Re: [PATCH] mm: remove redundant assignment of entry Message-ID: <20190914000326.h4ruqmyvo3yisf52@master> Reply-To: Wei Yang References: <20190708082740.21111-1-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708082740.21111-1-richardw.yang@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 08, 2019 at 04:27:40PM +0800, Wei Yang wrote: >Since ptent will not be changed after previous assignment of entry, it >is not necessary to do the assignment again. > Sounds this one is lost in the time line :-) >Signed-off-by: Wei Yang >--- > mm/memory.c | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/mm/memory.c b/mm/memory.c >index ddf20bd0c317..d108bb979a08 100644 >--- a/mm/memory.c >+++ b/mm/memory.c >@@ -1127,7 +1127,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, > if (unlikely(details)) > continue; > >- entry = pte_to_swp_entry(ptent); > if (!non_swap_entry(entry)) > rss[MM_SWAPENTS]--; > else if (is_migration_entry(entry)) { >-- >2.17.1 -- Wei Yang Help you, Help me