Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1012776ybl; Tue, 28 Jan 2020 16:52:09 -0800 (PST) X-Google-Smtp-Source: APXvYqx8THZrL4p1veiE656F+trgRp6ujEtF/xJ6NxQKArWRZS0tCehV6ifpcSbnxkvfpvFIbW6s X-Received: by 2002:a9d:7487:: with SMTP id t7mr16663636otk.267.1580259129754; Tue, 28 Jan 2020 16:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580259129; cv=none; d=google.com; s=arc-20160816; b=j76zWgG25PGZUPvf50UeGP1xJI0sRYDfjKAaVqFdPei8SUru7vj++wAnRGdtQaTKsd +3+iDC3KRW+uA90Dm4637z8q9ac4zi0UvmPVUQJkRKFhDqdySoQIHSV6JHXB9oL0gbrv dMzhMPuNpfah2eU9S4o/qgmi9B50tPRw8ejF7wAV/UeQHWAq8aJMM/xiXAr1F4TAeMJL UgdqYZnbH9fJQUZCQdV6VVMpVm80KgSiuVebgQZQCjoDDGJwJMGaZAad6MI7sRSsLR3n 8xHpU6GU7pQ+wDCljsoudMYNHmS8R2RLm6uRynGLHSlBNNHVf5zt8+zPDW549jYpJOx5 WfWQ== 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; bh=BV/lKv6ESqt8fCPhzMMZTyurnJH/KpyNvW9l1HgLY9Q=; b=hEnEaOiM2O4miJuwmhTFDZmhp3fUM/nonSfV+j7KcQ+/zgiUllpdx9KdzYCWHO+vXO 3uoaJ1m8QlzuP/L4e+11QMPqnx5f0kGr3lVNe9ggZzpslyeO5w6H5IEuQk6FvLPQOor1 +jwiUszldj3G7zzXlFuTZIJQvhjnZfF8WVc7PbzmvIKGnYvOK8UgqBnIUk7bDCSavrnM 9KXQz0Cjhd0FuDMfqSM42xg7a5Ll7sIrelprqOqL0X0sFydaMGtl5squQkKhz1P5fXsl y6fv/GF6MI50v2gr11CAFwOyvB4aU0psSmow64ZlH5hGwOr4rgTZlAinNcCFjm5rQdZJ 6P2A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si260192oie.119.2020.01.28.16.51.54; Tue, 28 Jan 2020 16:52:09 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727721AbgA2Abv (ORCPT + 99 others); Tue, 28 Jan 2020 19:31:51 -0500 Received: from mga01.intel.com ([192.55.52.88]:44879 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbgA2Abu (ORCPT ); Tue, 28 Jan 2020 19:31:50 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2020 16:31:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,375,1574150400"; d="scan'208";a="229457123" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga003.jf.intel.com with ESMTP; 28 Jan 2020 16:31:48 -0800 Date: Wed, 29 Jan 2020 08:32:00 +0800 From: Wei Yang To: David Hildenbrand Cc: Wei Yang , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mhocko@suse.com, yang.shi@linux.alibaba.com, rientjes@google.com Subject: Re: [Patch v2 1/4] mm/migrate.c: not necessary to check start and i Message-ID: <20200129003200.GB12835@richard> Reply-To: Wei Yang References: <20200122011647.13636-1-richardw.yang@linux.intel.com> <20200122011647.13636-2-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 11:04:23AM +0100, David Hildenbrand wrote: >On 22.01.20 02:16, Wei Yang wrote: >> Till here, i must no less than start. And if i equals to start, >> store_status() would always return 0. > >I'd suggest > >" >mm/migrate.c: no need to check for i > start in do_pages_move() > >At this point, we always have i >= start. If i == start, store_status() >will return 0. So we can drop the check for i > start. >" > >Reviewed-by: David Hildenbrand > Thanks, I took it. -- Wei Yang Help you, Help me