Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1076386ybl; Sat, 18 Jan 2020 18:13:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwG9NvdJPvQ539gvo3cn6SWj3HeLY0G4bHBkyANRxNHzNjRPZApvzg7TB8HQ5oY733esg9i X-Received: by 2002:a9d:1d02:: with SMTP id m2mr10882507otm.45.1579399985266; Sat, 18 Jan 2020 18:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579399985; cv=none; d=google.com; s=arc-20160816; b=Wxzq8ydta8v1ZtX7VLxLKHU8fMyb5WjAPKOc05Hs90V1g5rQTOhAbFE07Fl4X8ncpV dWLnE3BhMNopHuiWNwWhi0XYsmfh2D6bVpDxj8JlUiSx+z/ow5FLnpYiIkkl78wMlpXy a2IaOsAXQkD3qGEdnhqu7raEdR2+fqOA7HxNBS79UyPmb9LX8kvAT623MIAAo2+qagnh 75XydQeBbZucfzxF4YhfVa+SYJiVMLy5VQz7Rtcvm5XpWE1KarQRDPoUWHVCvnU2wYTs F2xhrlFCEdl9EdiNW3taYtgou3PEfKx9+5pWFBuTgNONr+T0ky7i0NIKYPXI6hlOUX1e iGrw== 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=b2ibDRFN9AjHlhEfgajsEAmnXqMM2/dC22xFyPDVTxQ=; b=wyNZs5ADr7AehBaQNc3AqX91f9hebEWrhtStwNw/MM2uG90DO3lXSsfOkCuyy2rXko 76/4C750/igp5gYgOeQR5/wS0KNbsJU0FEgXLCJhbQGZK7lug4g0lKKzGIzmZ6LGhjnU OThtPTZsDnlEzceiBF/0T2JgXB+PQ+jknQP4YcOezN2pUQgXvAcB9k+CIlL93hneb2+g 00W7d4w7wY8+FI68nvXU4wVU/99wDbGZapOjwUXINm/NZEW36yEsAXMeat6h6kKOPVc/ ItxjZFo3siFTz7qOwEEpsCToMK3fr0SJa2IQgGPOA/hWYqrJlwcF+EG0V9GgPRaGtGI4 zb5w== 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 v5si15461099oix.197.2020.01.18.18.12.53; Sat, 18 Jan 2020 18:13:05 -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 S1727403AbgASCK7 (ORCPT + 99 others); Sat, 18 Jan 2020 21:10:59 -0500 Received: from mga05.intel.com ([192.55.52.43]:6490 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727106AbgASCK7 (ORCPT ); Sat, 18 Jan 2020 21:10:59 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jan 2020 18:10:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,336,1574150400"; d="scan'208";a="214896325" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga007.jf.intel.com with ESMTP; 18 Jan 2020 18:10:56 -0800 Date: Sun, 19 Jan 2020 10:11:07 +0800 From: Wei Yang To: Andrew Morton Cc: Wei Yang , dan.j.williams@intel.com, aneesh.kumar@linux.ibm.com, kirill@shutemov.name, yang.shi@linux.alibaba.com, thellstrom@vmware.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/5] mm/mremap.c: cleanup move_page_tables() a little Message-ID: <20200119021107.GA9745@richard> Reply-To: Wei Yang References: <20200117232254.2792-1-richardw.yang@linux.intel.com> <20200118160702.9e5cc9f44ef855c070036331@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200118160702.9e5cc9f44ef855c070036331@linux-foundation.org> 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 Sat, Jan 18, 2020 at 04:07:02PM -0800, Andrew Morton wrote: >On Sat, 18 Jan 2020 07:22:49 +0800 Wei Yang wrote: > >> move_page_tables() tries to move page table by PMD or PTE. >> >> The root reason is if it tries to move PMD, both old and new range should >> be PMD aligned. But current code calculate old range and new range >> separately. This leads to some redundant check and calculation. >> >> This cleanup tries to consolidate the range check in one place to reduce >> some extra range handling. > >Thanks, I grabbed these, aimed at 5.7-rc1. Thanks :) -- Wei Yang Help you, Help me