Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2302289ybl; Thu, 30 Jan 2020 15:07:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwygL6a9RFY0SED59xK5333Akhzqwteke2HbB7sJ7Z8audSC3bBFnAZNVEai+AJuNnnYX6+ X-Received: by 2002:a05:6830:43:: with SMTP id d3mr5642410otp.259.1580425624374; Thu, 30 Jan 2020 15:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580425624; cv=none; d=google.com; s=arc-20160816; b=slb+u/BPIa5uQHnzwYBG/lB7VZ3zsbb4HDF0unE2eP1DnqdnMfDLnzjyhh7Ys+lINE 0NeomVwyksGYBs7EnnGnMio1y1ss+zHRGRb5H6hLZiEzalcS/Bot1L/RLstI95+5Bhji URKnzVdO8sP06AfHH/AmRwThkzngGOv19yB3BQRvKUno+qSOQ4VLQOA3YqJy3c92W1JD IWaiTfxwh6/4r7eThMI/2h37lgwAfJA1wvkHXUpedN5lPTFFOPvNK9r3F1CgFmy3bqRU h05aBb/2N3GRSb7c3KWmfQ4fkXDvq8GQFXWTVN53UTp3yo3AEHf2JRy62MGqP1whI/n3 G+Cw== 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-transfer-encoding:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=NEnq1O0VD+Q2Zp1KH/Oc29TxQvvTv35ef7cG26o+lEA=; b=fLPYOrDQ60XfIl2znKD8fhmTiBSE/oK8PuuQsjZ77vHv1QNHj2+i8nLZt+BVmcdNRM C1NJ8jrvnwNFieXUL5ABsPtWnpnqmffTrQFlIU4sOrbdgRcO/qngP3pSgQSl/0lxOLte VSgcJtG/T/hLisgIqYOxv3SjgU9mdravstY8qJcQRHU1nhp8bfr4pU6IoqAoDU8UIawX XJqSqv5NHnmOkakOOJNtI+2oTFJLTW+w88K7yz+JjeNmdOlplwMUAtbAHATeY+29/TNM MtCrFNm8PsMrMJ+9dlEjpydU8kfRO6lDIdIbXUzu1SMRyC1buVeFXTtx9s+ejiTRhcR0 URUA== 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 q9si3125727oij.125.2020.01.30.15.06.51; Thu, 30 Jan 2020 15:07:04 -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 S1727620AbgA3XEz (ORCPT + 99 others); Thu, 30 Jan 2020 18:04:55 -0500 Received: from mga09.intel.com ([134.134.136.24]:56248 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgA3XEy (ORCPT ); Thu, 30 Jan 2020 18:04:54 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2020 15:04:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,383,1574150400"; d="scan'208";a="218436177" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by orsmga007.jf.intel.com with ESMTP; 30 Jan 2020 15:04:52 -0800 Date: Fri, 31 Jan 2020 07:05:07 +0800 From: Wei Yang To: Dmitry Osipenko Cc: Wei Yang , akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, kirill@shutemov.name, dan.j.williams@intel.com, yang.shi@linux.alibaba.com, thellstrom@vmware.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [Patch v2 0/4] mm/mremap: cleanup move_page_tables() a little Message-ID: <20200130230507.GA15192@richard> Reply-To: Wei Yang References: <20200129002642.13508-1-richardw.yang@linux.intel.com> <50f408bd-502e-bd02-53d4-719300736ce2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <50f408bd-502e-bd02-53d4-719300736ce2@gmail.com> 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 Fri, Jan 31, 2020 at 01:18:00AM +0300, Dmitry Osipenko wrote: >29.01.2020 03:26, Wei Yang пишет: >> 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. >> >> v2: >> * remove 3rd patch which doesn't work on ARM platform. Thanks report from >> Dmitry Osipenko >> >> Wei Yang (4): >> mm/mremap: format the check in move_normal_pmd() same as >> move_huge_pmd() >> mm/mremap: it is sure to have enough space when extent meets >> requirement >> mm/mremap: calculate extent in one place >> mm/mremap: start addresses are properly aligned >> >> include/linux/huge_mm.h | 2 +- >> mm/huge_memory.c | 8 +------- >> mm/mremap.c | 17 ++++++----------- >> 3 files changed, 8 insertions(+), 19 deletions(-) >> > >Hello Wei, > >I haven't noticed any problems using the v2. Thank you very much for >addressing the problem! > Glad to hear this. Actually, really thanks for your patience on testing and reporting the problem. Have a nice day :-) >Tested-by: Dmitry Osipenko -- Wei Yang Help you, Help me