Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp930026ybl; Fri, 16 Aug 2019 06:22:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYN9RkfUUpp1p36NrVuqVROaX9AQgH6VQ65SwLzXwZnFTtMPqREJNZx9w0ewYLlhowkSB+ X-Received: by 2002:aa7:96bd:: with SMTP id g29mr11131631pfk.10.1565961739113; Fri, 16 Aug 2019 06:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565961739; cv=none; d=google.com; s=arc-20160816; b=YBNM5ujbmXivea+LBEBIeXZe6uM/r64VCVa91UFTvPeEgqU/WlX1IaEKxKMVrgS9YL CyifSxreG73/841OiS6++OZdsUa9y1Z00Zzcz10L6VNuJ8YV+ksM8a0Xm2X8eQ0sPP95 eBKgKU+nS83v/9X6uNkjU1SZKkG7KKdP4uIh4Lqhs19+Sp9fste+OHGmJvrHjys37OTI 0fnFxq3l2rj29aN0o7Qa7ruw3Yhz6qXu9TcsTrhPfTj06IoYgmoCzSbvY9YYTkD8I+S1 f6UWl2p94Z+T+sWFwzExw9kaKIkDIhIZz+3BWEXRpAAtNJVoAr0LB6Fm4YzJwi3XsuLD +BXQ== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=dm2N+LnWuHtZbkuSIck0zIcrvDsNHqwjs1kno32i+NQ=; b=PcgX1Akk2S/2jmNnkJtL3uvdnfEgzR7yriw9DlaO+eQe1Mo6d+Z3WpOHL12mLZQpIf Zr/kHPhCl8oD3xCcfBcX/Ul2SlJF+/LvF9tUuYzNBlFce/050sHZCyHubvnzGld98FbN zkC4UTPQ3YyDlwQbRNYa+8hca4xRXt+K9w3gTdRRsaRB5/m7KPWFJp3bn0aL5Fdngtx4 mAdMoFt+g58SsI6KC8rWyGzXYBa2NufKKwjyF6fp9tetdO0XGQNQWrZlPxMckiLjDwCU uG3shMfUDU6g/sCv5SSG37T2cscEhAp7i3D0xQw0O5NrYmv+HQj0S5Lgcwr3r+Oqfpnr KX7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bdoe+EPy; 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 a12si2771615pgt.146.2019.08.16.06.22.02; Fri, 16 Aug 2019 06:22:19 -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=Bdoe+EPy; 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 S1727254AbfHPNVQ (ORCPT + 99 others); Fri, 16 Aug 2019 09:21:16 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:35704 "EHLO mail-pl1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727087AbfHPNVQ (ORCPT ); Fri, 16 Aug 2019 09:21:16 -0400 Received: by mail-pl1-f172.google.com with SMTP id gn20so2459970plb.2 for ; Fri, 16 Aug 2019 06:21:15 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dm2N+LnWuHtZbkuSIck0zIcrvDsNHqwjs1kno32i+NQ=; b=Bdoe+EPyJIVt0t4vtNlH3KtR97Uv+lIglmMvP9oVETaOhMb+OsBJBYdKEl2FqG4npb FKKbloJWQQBhLJ2altHF5EOizbJD3qSmt9okzqqKsWIRYBdLEkGtHFs731ihxLty3TUC kgkjyN94T3r46VAC0bHTLz26wdM+WhZbYjLXu02lqXIpfyQhRTerQwuAXbuTqsDBdLWE kvXX2rTNUp0qb4+8nmSkJzJzCJZ4bt3wSyu48WnFkf/FIsDIjvn4FA8eb6ZNa9/Jhq3C aC6fMBrfgQKu9fiGJZ4ESItwoOimDspMMwM5F7upsNxUdKmOmfd8C+9gfuH28qCDi0Vb 9HpQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dm2N+LnWuHtZbkuSIck0zIcrvDsNHqwjs1kno32i+NQ=; b=TTWHFxhKjb3kGRfLdEs672u5ZSmYi+x2jwKRfVQMti6fklnOegvIM66q5Nmf/hHEIv BlASukublOuLoPbwnuw+Ovj3LNqxDHvhWwbZo+bTdjcEagFZRtCF0FIzJcg6JWw+Zvw7 VRkhoe6m4ZtDyvHSqVD5IdRsuc2omPTNNas7wqpiMEO7IprkEbrMJIf0b/k9ttB1/Otn BwwOO3PJ91/u5msX8O0VSHKL2s5ehVseFTXvob94GvVqoNsHwZC2Bo1LfIMiR2qjx5tE BGRYoRYebOEs3syyONpITRu9jjDhss0F/Zi/VrXIPonuKP1ABUqx4wHIMwTmcxBX2kTC xpJA== X-Gm-Message-State: APjAAAVs4fwOK7fM3en6R2eCZHivQ6FJ/ZIWnux/LByA0VzoR/Qjtrct 0oWwH5kimfuu+8grFuEKig== X-Received: by 2002:a17:902:4401:: with SMTP id k1mr9272692pld.193.1565961675287; Fri, 16 Aug 2019 06:21:15 -0700 (PDT) Received: from mypc ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d12sm6107656pfn.11.2019.08.16.06.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 06:21:12 -0700 (PDT) Date: Fri, 16 Aug 2019 21:21:02 +0800 From: Pingfan Liu To: Jerome Glisse Cc: Ralph Campbell , linux-mm@kvack.org, Andrew Morton , Mel Gorman , Jan Kara , "Kirill A. Shutemov" , Michal Hocko , Mike Kravetz , Andrea Arcangeli , Matthew Wilcox , linux-kernel@vger.kernel.org Subject: Re: [PATCHv2] mm/migrate: clean up useless code in migrate_vma_collect_pmd() Message-ID: <20190816132102.GA10848@mypc> References: <20190807052858.GA9749@mypc> <1565167272-21453-1-git-send-email-kernelfans@gmail.com> <20190815171918.GC30916@redhat.com> <20190815194021.GB9253@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815194021.GB9253@redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 15, 2019 at 03:40:21PM -0400, Jerome Glisse wrote: > On Thu, Aug 15, 2019 at 12:23:44PM -0700, Ralph Campbell wrote: > [...] > > > > I don't understand. The only use of "pfn" I see is in the "else" > > clause above where it is set just before using it. > > Ok i managed to confuse myself with mpfn and probably with old > version of the code. Sorry for reading too quickly. Can we move > unsigned long pfn; into the else { branch so that there is no > more confusion to its scope. Looks better, I will update v3. Thanks, Pingfan